Hacker News new | comments | show | ask | jobs | submit login

I'm surprised no one has made a little command line tool that follows the rules and automatically inserts semicolons according to the ASI spec.

That might even be useful.

...or perhaps a simple "Zen of Javascript" would be in order.

Reading this "debate" makes me thankful for the Python Community and their stance on "readable code" above all else.

Now that you mention it, every language should have a "Zen" statement, or if you don't want to call it that, a short description of its philosophy. This in addition to the concise problem/solution statement that probably every piece of software should have.

Closure linter's fixjsstyle can do this


Applications are open for YC Winter 2019

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact