|
Correct, just the single app.module.ts with all my components in it. And yea not it; like I said even if I copy one that is working to the component where it's not working [and strip out all the ngModel=... stuff] it still doesn't work in those components either lol.
|
# ? Jun 7, 2023 12:59 |
|
|
# ? May 16, 2024 12:22 |
|
cum jabbar posted:It's likely a spam bot that submits every field with text regardless of the input type. Does the form use backend validation on that field? What about a CSRF token? Thank you, that makes a lot of sense. It doesn't currently use any backend validation, although this may be worth adding. It does use a CSRF token.
|
# ? Jun 7, 2023 17:09 |
|
Motherfucker.... Apparently those tooltips don't work unless they're inside of a div or whatever with `class="card cardbody"` 😫
|
# ? Jun 7, 2023 21:25 |
|
And today I learn that the content of innerHTML doesn't necessarily reflect the actual DOM tree 1:1. I've been messing some more with pagination via paged.js, and eventually wanted it integrated with the rest of my existing printing things. Figured to transfer stuff via dangerouslySetInnerHTML in React. But the paginated output suddenly didn't match between the test code and this. Turns out when doing it this way, some spans that were supposed to be in table cells suddenly found themselves outside. However in good news, it seems like the Chromium team is finally working on the layout engine issue that breaks mixed orientation printing. Combat Pretzel fucked around with this message at 16:43 on Jun 8, 2023 |
# ? Jun 8, 2023 16:38 |
|
Is writing a backend in Rust a giant footgun at this point? I've banged out a few embedded projects in Rust recently and now that I'm faced with creating a small backend, I'm really tempted to do that instead of my goto python.
|
# ? Jun 22, 2023 19:36 |
|
My biggest concern would be being able to bring in colleagues skilled in Rust to help develop or maintain it. Python programmers are easy to find/train. Rust might be more difficult.
|
# ? Jun 22, 2023 21:03 |
|
minato posted:My biggest concern would be being able to bring in colleagues skilled in Rust to help develop or maintain it. Python programmers are easy to find/train. Rust might be more difficult. I agree, this is what I was thinking too.
|
# ? Jun 22, 2023 21:16 |
|
Fyi I'm dick deep in this bootcamp now and I just got owned by object oriented programming. AMA
|
# ? Jun 23, 2023 15:22 |
|
davey4283 posted:Fyi I'm dick deep in this bootcamp now and I just got owned by object oriented programming. AMA There will be a day when it just clicks for you. I promise.
|
# ? Jun 23, 2023 15:28 |
|
I love OO programming. Has it fallen out of favor in some areas? I hear a lot of talk about procedural and functional programming these days
|
# ? Jun 23, 2023 16:37 |
|
inheritance sucks
|
# ? Jun 23, 2023 18:47 |
|
https://www.youtube.com/watch?v=QM1iUe6IofM yeah that's right i'm posting a 45 minute programming opinion video
|
# ? Jun 23, 2023 21:15 |
|
Last Chance posted:I love OO programming. Has it fallen out of favor in some areas? I hear a lot of talk about procedural and functional programming these days Oh man. Ohh man, you are trying to rile people up.
|
# ? Jun 24, 2023 11:02 |
|
I'll bite though. OOP is really good if you've got a lot of different objects that interact with one another in dynamic and unexpected ways. Game development for example. But in professional applications, unexpected things happening is the last thing anyone wants. Something that always outputs the same thing when given the same inputs. Something that's easy to test and predict. Dependable. If you're using OOP just because it's what you're used to using then I recommend looking at alternate methodologies and structures. It is absolutely not the right tool for anything that matters, in my opinion. You wouldn't write bank software in Java for example that would be insane. No bank would ever do that rite?
|
# ? Jun 24, 2023 11:09 |
|
barkbell posted:inheritance sucks Inheritance, polymorphism, getters/setters, @method tags, fml. Honestly, I'm probably just complaining since I'm right in the middle of a steep learning curve. I know they teach it since we'll probably run into it out in the wild. But I'd much rather be doing functional programming with js and all the regex/reduce/filter/map hack stuff. It is what it is davey4283 fucked around with this message at 17:53 on Jun 24, 2023 |
# ? Jun 24, 2023 17:51 |
|
Don't forget encapsulation
|
# ? Jun 24, 2023 17:55 |
|
There's a certain "bug" that's been confusing me for a while, so I figured I'd run it by this thread and see if anyone has encountered anything similar (it seems like the sort of issue that is difficult to Google, since attempts to search for it bring up many unrelated topics). There's this one POST form on my website that submits a request to an end-point that can receive both GET and POST requests. It either submits a bunch of form inputs (with the POST) or just a single hash that is used to fetch the cached inputs from Redis (with the GET - this is so users can link directly to results). This works correctly for most users, with the unfortunate exception of my boss. For some reason, the first time he submits the form it is wrongly submitted as GET (and throws an error as a result, since it's basically treated as a GET request with zero inputs). After that, it is correctly submitted as POST. Other relevant information: - The page with the form contains an input indicating the "final destination" endpoint. It first submits to a loading page, which then uses some JS to submit to said endpoint. I think this is where the problem occurs (but it's hard to test since I can't reproduce it). - I'm pretty sure this issue was introduced when I changed the endpoint in question to allow both GET and POST requests. If absolutely necessary I could always use two separate endpoints, but I feel like that shouldn't be necessary (and it currently works for seemingly everyone but my boss, which makes me think there's some sort of issue involving the specific browser* or an ad/content-blocker, though the website should obviously still work despite that). - I have absolutely zero clue why it works for him after the first attempt. Basically, the first time he runs the function on a specific trait, it does the bad GET submission and throws an error. But every subsequent time, it correctly submits as POST and runs normally. * my boss uses Safari, but I don't encounter the issue if I use Safari on my mac laptop - as far as I'm aware my boss is literally the only person who has encountered this problem, but unfortunately he's also "the most important user" for obvious reasons lol edit: I made a change that I think will fix the issue (at least without any more significant changes). Still waiting on my boss to test (since he's the only one who can actually confirm whether it works). I basically just changed the "/the_function" endpoint to only accept POST again, and instead made the other "linkable" endpoint be structured like "/the_function/<hash>" instead of "/the_function?hash=<hash>". I still don't know what was causing the "false" GET requests, but I think this will probably prevent the issue since I'm 99% sure it was introduced by allowing both GET and POST requests at that endpoint. Ytlaya fucked around with this message at 19:38 on Jul 5, 2023 |
# ? Jul 5, 2023 17:58 |
|
So I have a wordpress site, but the customizability of using pregenerated templates and stuff feels basically nil, and everytime I'm like "I want to change this" I end up realizing I just want to directly edit the site to do what I want and I can't with the tools available to me. I'd rather just start from scratch with an existing framework teach myself webdev, and get a little website that sells stickers without all the other garbage, what's a good framework for that? My partner is very particular about how it looks, so visual customizability is most important to me, and honestly, I'm wondering if I should just do it in html. A big thing I'm worried about is security and stuff, but if I run it through a payment processor like stripe / paypal, then I don't have to touch any of that stuff right? Can someone point me at like, not even a tutorial, but just a "Ruby" "React" "node.js" "Droopal" recommendation?
|
# ? Jul 5, 2023 22:46 |
|
I think Django is nice, if you discover later on that you want you can put React or whatever in front but you probably won't need to.
Mata fucked around with this message at 22:52 on Jul 5, 2023 |
# ? Jul 5, 2023 22:50 |
|
Boba Pearl posted:So I have a wordpress site, but the customizability of using pregenerated templates and stuff feels basically nil, and everytime I'm like "I want to change this" I end up realizing I just want to directly edit the site to do what I want and I can't with the tools available to me. I'd rather just start from scratch with an existing framework teach myself webdev, and get a little website that sells stickers without all the other garbage, what's a good framework for that? My partner is very particular about how it looks, so visual customizability is most important to me, and honestly, I'm wondering if I should just do it in html. A big thing I'm worried about is security and stuff, but if I run it through a payment processor like stripe / paypal, then I don't have to touch any of that stuff right? Can someone point me at like, not even a tutorial, but just a "Ruby" "React" "node.js" "Droopal" recommendation? You can do this with Wordpress by creating your own theme from scratch. This way, you'll get to keep all the existing content.
|
# ? Jul 5, 2023 22:59 |
|
Boba Pearl posted:So I have a wordpress site, but the customizability of using pregenerated templates and stuff feels basically nil, and everytime I'm like "I want to change this" I end up realizing I just want to directly edit the site to do what I want and I can't with the tools available to me. I'd rather just start from scratch with an existing framework teach myself webdev, and get a little website that sells stickers without all the other garbage, what's a good framework for that? My partner is very particular about how it looks, so visual customizability is most important to me, and honestly, I'm wondering if I should just do it in html. A big thing I'm worried about is security and stuff, but if I run it through a payment processor like stripe / paypal, then I don't have to touch any of that stuff right? Can someone point me at like, not even a tutorial, but just a "Ruby" "React" "node.js" "Droopal" recommendation? https://astro.build
|
# ? Jul 6, 2023 05:16 |
|
I have a small personal project that I’ve been using countapi.xyz to store a simple counter value, but it looks like the API has gone down, not sure if for good. I was thinking about maybe switching to just fetching a simple JSON blob I store in a GitHub gist somewhere or something. I have a friend who’s not too tech savvy that needs to update the counter a few times a year so I figured a gist would be relatively straightforward for them to modify. Is there somewhere else I should consider storing this little piece of data, in a shared space of some sorts? Edit for additional context: Haven’t looked into traffic numbers but I’d be surprised if this project gets more than a few dozen views a month. reversefungi fucked around with this message at 06:52 on Jul 19, 2023 |
# ? Jul 19, 2023 06:48 |
|
Sorry for the noob question, but what is the neat screen door-looking overlay called on top of the background video on this site? https://warthunder.com/en
|
# ? Jul 25, 2023 05:32 |
|
I've almost got something set up in django-oscar that I might be able to show off
|
# ? Jul 25, 2023 05:39 |
|
Agoat posted:Sorry for the noob question, but what is the neat screen door-looking overlay called on top of the background video on this site? I'm not sure if that treatment has a specific name (I'd just call it "a repeating dot pattern") but all they're doing is applying a repeated background image z-indexed over the video as a pseudo element. Here's the CSS in question: CSS code:
kedo fucked around with this message at 14:48 on Jul 25, 2023 |
# ? Jul 25, 2023 14:45 |
|
Calling it a halftone pattern would be a stretch.
|
# ? Jul 25, 2023 14:49 |
It's like mormon bubble porn
|
|
# ? Jul 25, 2023 17:03 |
|
Data Graham posted:It's like mormon bubble porn Today I learned something that depresses me.
|
# ? Jul 25, 2023 17:11 |
|
This is going to sound like a dumb question, but I've been able to spin up an E-mail server, a gitlab, and both my comic, and my partner's e-commerce store on a single server and sorted out all the DNS stuff, I know this is probably like really junior dev stuff, but is there a way I could spin this into work what would give me money? Like, just some money to play around with, it doesn't have to be full time. I ended up going with wordpress in the end lol, but I'm still committed to learning django.
|
# ? Jul 27, 2023 20:52 |
|
The problem is it is so easy to do those things these days, coupled with the availability of site builders like Wix and Squarespace, that setting up websites has been commodified to the point that it is a very low paying job even if you manage to do it 30 hours a week. Also, setting up and running email servers is a hell you do not want to wade into.
|
# ? Jul 28, 2023 15:58 |
|
Even if you found clients, unless you already had a very efficient running operation, it might be more beneficial to act as their squarespace broker/admin instead of spinning up stuff that is more involved.
|
# ? Jul 28, 2023 16:19 |
|
I do resent Squarespace and Wix for eliminating the $1000 brochure site. Obviously it's a way better deal for the small businesses but that used to be such a good little supplemental income stream, heh.
|
# ? Jul 28, 2023 17:41 |
|
Not to mention Shopify for eliminating the $50k ecommerce site.
|
# ? Jul 28, 2023 18:57 |
|
|
# ? Jul 28, 2023 19:37 |
|
Look on my Works, ye Mighty, and despair! https://www.youtube.com/watch?v=-72sIsC1qTU
|
# ? Jul 29, 2023 02:35 |
|
A question for ya'll – does anyone have experience picking up small side work (or "gig work" as the economy tells me it's called) for web dev? I freelanced for years but took on a full-time position about a year ago. I have frequent but inconsistent gaps in my schedule where I could pick up a few hours of work here or there, but not enough that I could reasonably bid on true projects in my freelance capacity. I'm not sure if such a thing even exists outside of sites like Fiverr, but it's not really worth my time to compete with random dudes in India who charge $15/hr for their work.
|
# ? Jul 31, 2023 15:28 |
|
What are the go-to domain registrars these days? I occasionally help clients at work set up some basic starter websites and I've been using Gandi for a while, but I think the value has fallen off with the price rises and dropping free email. I seem to remember namecheap being decent. Any other goon favourites?
|
# ? Aug 1, 2023 11:31 |
|
GigaFuzz posted:What are the go-to domain registrars these days? I occasionally help clients at work set up some basic starter websites and I've been using Gandi for a while, but I think the value has fallen off with the price rises and dropping free email. I've heard good things about cloudflare
|
# ? Aug 1, 2023 13:51 |
|
I often use hover.com
|
# ? Aug 1, 2023 14:31 |
|
|
# ? May 16, 2024 12:22 |
|
GigaFuzz posted:I seem to remember namecheap being decent. Any other goon favourites? I still use Namecheap because it's inexpensive (for the first year at least) and reliable.
|
# ? Aug 1, 2023 14:31 |