The best advice I can give to new developers is "question your assumptions".
"But I set that variable" - did you?
"It should default to 0" - is it?
Remember - if things were working as you think they are then your code would be working.
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
The best advice I can give to new developers is "question your assumptions".
"But I set that variable" - did you?
"It should default to 0" - is it?
Remember - if things were working as you think they are then your code would be working.
I have great colleagues who still bust out this kind of cross-examination when we're trying to figure out why my code is a bag of poo. I have some friends I've known 25 years who will do this, and it's every bit as annoying and infuriating as it's invaluable help.
You didn't add the date field to your query and couldn't work out why it didn't return the missing field for over 2 hours?
Perhaps SQL isn't for you as things get waaaaay more finicky than that.
You’ve never made a silly mistake where you “can’t see the forest for the trees”?
It happens to the best of us
Yes of course, but it's not the sort of thing I'd make a rant post criticising the entirety of programming about.
It's like going to a mathematics forum and declaring "Guyz I forgot to carry a 1, screw Maths."
Because developers are all logical and don’t EVER show anger at the systems they’re working on…. Hahahaha..
I mean I personally wouldn’t post about it, but I’d probably rant over lunch at my stupidity…
There's a difference between ranting to your coworkers at lunch about a stupid mistake and typing out a full rage essay.
Imagine the state of the sub if we all did that... Wait...
This "full on rage essay" is nine sentences, including the tl;dr and the sentence fragments. There's really not a big difference between telling your coworkers a story like this and posting about it on social media.