Stop saying that, it has it’s uses /;_;\
- 0 Posts
- 21 Comments
Just use the paint, internet person
This is what that indian kid would write on facebook after his first programming course lesson, to show off career choice
Actually they’ve all been replaced by 🤡
It’s the opposite, everything is passed by reference but primitives are also addresses and therefore passed by value
You can’t pass objects or functions as value
ddplf@szmer.infoto Programmer Humor@lemmy.ml•When your code is absolutely dumpster fire353·6 months agoThis is an authentic message for when you open a php project
It may not be the fastest solution, or the most reliable, or the most maintainable, but it certainly would best accommodate our investors’ needs!
Been there, done that. Everyday would start with a 2 hour session of meetings. Daily for 30mins and then 1.5h of refinement. Day by day, for 2 years of me being there.
It, without an ounce of irony, leaves a fucking scar on you and makes you despise having meeting for the rest of your life.
Because it doesn’t seem like a useful feature. The only occasion I imagine this could be helpful is with logging to the console to track when the function breaks, but even then - still trivial to replace.
I had tried to use debugger with React so many times and each time I’d drop it soon after. Not useful at all.
Does much better job on the backend though
ddplf@szmer.infoto Programmer Humor@lemmy.ml•TIFU by not using objects in my object-oriented programming coursework412·6 months agoGood, OOP can suck my balls
To me, there are two classifications of DRY - one I find harmful, the other very useful.
First one resembles mathematical extractions, essentially you never allow a single chunk of code to be written twice and you create massive amounts of global util junk. This also creates some bad tight coupling.
The other is more logical, where you only extract logic in places you want to always change together. Simple and effective.
https://lemmy.world/comment/13098712
dis 'bout you?
ddplf@szmer.infoto Programmer Humor@lemmy.ml•Oh boy what a beautiful regex. I'm sure it does something logical and easy to understand.21·7 months agoThat’s your opinion my man
I’m not gonna continue using arguments if all you can respond with is cynicism, apparently I wasn’t wrong about the elitism part
ddplf@szmer.infoto Programmer Humor@lemmy.ml•Oh boy what a beautiful regex. I'm sure it does something logical and easy to understand.34·7 months agoThat I do, yes, because that’s a small chunk of code that - when necessary - would have to be completely remade anyways, not just modified.
ddplf@szmer.infoto Programmer Humor@lemmy.ml•Oh boy what a beautiful regex. I'm sure it does something logical and easy to understand.74·7 months agoAnd then a few more any time you actually want to use it.
And then double it each time you have to decipher the existing one
Just don’t use regex unless there is really no other way, and when you absolutely have to - frankly, that’s one of the ultra rare occasions I recommend using the AI.
ddplf@szmer.infoto Programmer Humor@lemmy.ml•Oh boy what a beautiful regex. I'm sure it does something logical and easy to understand.223·7 months agoAh yes, spoken like a true elitist asshole
This sounds just extremely dumb to me, as in “do something manually for 2 minutes or spend 2 days automating it”
Also, DRY in 90% of the cases is a sham
I don’t get it, what’s so bad about boilerplate?
I don’t get it