Every real programmers
Comment on Pure Evil
newIdentity@sh.itjust.works 1 year ago
Who uses semicolons in Javascript?
tkarika@lemmy.world 1 year ago
psud@aussie.zone 1 year ago
In that sentence, we use “programmer” singular, because “every” is singular, though referring to many
All real programmers
Every real programmer
Each real programmer
No real programmer
It’s pretty arbitrary
Perfide@reddthat.com 1 year ago
People who like minimizing the amount of bug fixing.
BearJCC@lemmy.sdf.org 1 year ago
Old habits die hard. Learned JS, CSS and C++ all the same year about a decade ago.
manapropos@lemmy.basedcount.com 1 year ago
I use prettier which by default adds semicolons. Coming from predominately doing backend stuff (mostly in Java) I don’t really mind, especially when the formatter adds them for me
newIdentity@sh.itjust.works 1 year ago
That’s what I do too, but i don’t manually add them
seitanic@lemmy.sdf.org 1 year ago
Programmers who care about best practices. Here are a couple of scenarios where not using a semicolon will bite you in the ass.
newIdentity@sh.itjust.works 1 year ago
seitanic@lemmy.sdf.org 1 year ago
~95% of the JS code you see on the Web has semicolons. Apparently, a lot of programmers think it’s worth that extra keystroke to avoid these types of bugs. I agree with them. The difficulty with programming isn’t “Arrgh, there are too many keystrokes, my hands are tired!” It’s “Arrgh, HTF did this bug get in here?!?”
rockSlayer@lemmy.world 1 year ago
They made it a named function, but this is literally how you format anonymous functions in js, a key feature that usually gets called with an
onclick
call in the html domain.