Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Actually, this is the canonical JS with prototypes. The more common style nowadays is to (ab)use the module pattern.


I think the parent is referring to the particular stylistic decisions that differ from what's most common in the JS community. The author uses tabs to indent (instead of spaces), snake case (instead of camel), no semicolons, etc.


Wow, didn't even notice that. Now that I look at it, it does seem more airy and spacious. The style is also a bit eclectic and unsound. Dropping the curly braces on that else on L698 irks me to no end.


This style could be called 'No fear JS' :)



Ha, good get.




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

Search: