You are viewing a single thread.
View all comments
-1 points

Who uses semicolons in Javascript?

permalink
report
reply
32 points
-10 points
*
Deleted by creator
permalink
report
parent
reply
10 points

~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?!?”

permalink
report
parent
reply
1 point
*

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 stuff like an onclick or onload call in the html domain.

permalink
report
parent
reply
25 points

Every real programmers

permalink
report
parent
reply
2 points

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

permalink
report
parent
reply
6 points

Old habits die hard. Learned JS, CSS and C++ all the same year about a decade ago.

permalink
report
parent
reply
5 points

People who like minimizing the amount of bug fixing.

permalink
report
parent
reply
3 points

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

permalink
report
parent
reply
1 point

That’s what I do too, but i don’t manually add them

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 3.4K

    Monthly active users

  • 1K

    Posts

  • 37K

    Comments