this post was submitted on 14 Aug 2025
184 points (95.5% liked)
Programmer Humor
25699 readers
1276 users here now
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
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Explanation for nerds
The reason is the JS compiler removes whitespace and introduces semicolons only "where necessary".So writing
Is not the same as
Because the compiler will see that and make it:
You big ol' nerd. Tee-hee.
Common JavaScript L
Not wrong, but funnily enough, it's a linting rule win. I'd go nuts if I didn't have my type checks and my linters. My current L, though, is setting up the projects initially and dealing with the configuration files if I raw dog it, but that's a problem with ESLint configs and the ecosystem as a whole having to deal with those headaches. So in the end, the JS devs got clever and shifted the blame to the tooling. 😅