Hacker News new | ask | show | jobs
by DonHopkins 2314 days ago
It's not so much how often it happens, but how freaking hard it is to find the problem by inspection when it does happen.
1 comments

Linters correctly highlight all the ASI-related that realistically happen. (Or eslint does anyway, can't speak for others.)
Good linters correctly highlight all missing semicolons as a symptom of sloppy, negligent, careless programming (or pointless syntactic showboating). It's also technically syntactically valid to omit braces around single statements after if, else, for, and while statements, but idiotic and dangerous to do that, too.

https://wiki.c2.com/?FixBrokenWindows

https://www.rtuin.nl/2012/08/software-development-and-the-br...

https://blog.codinghorror.com/the-broken-window-theory/

https://medium.com/@matryer/broken-windows-theory-why-code-q...