this post was submitted on 01 Sep 2023
329 points (96.1% liked)

Programming

17547 readers
131 users here now

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

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] 0xc0ba17 -4 points 1 year ago* (last edited 1 year ago) (2 children)

People who insist on using semicolons in Javascript don't understand why and are just following a cargo cult.

Remove the semicolons, be free.

Edit: lmao I hit some nerve here

[–] [email protected] 2 points 1 year ago

It's also because my fingers automatically type them for the sake of most other languages. Let me have my muscle memory.

[–] [email protected] 1 points 1 year ago (1 children)

iirc semicolons are required in JavaScript strict mode.

[–] 0xc0ba17 2 points 1 year ago

They're absolutely not