Hacker News new | past | comments | ask | show | jobs | submit login
Pragmatic.js code style guidelines by Thomas Fuchs (github.com/madrobby)
6 points by tomse on Sept 13, 2012 | hide | past | favorite | 2 comments



    Writing less code is good; emphasized by the no 
    optional semicolons rule, by no curly braces where 
    not necessary and by using functional programming 
    constructs whereever possible.

Is omitting semicolons really the standard? I am fairly new to programming but I find semicolons injs to be very helpful.

Edit: just read the linked http://mislav.uniqpath.com/2010/05/semicolons/ very good explanation why semicolons are questionable at best.


Using semicolons or not in javascript is just another holy war a la vim vs. emacs, apple vs. google, etc. You'll find people who are passionate on both sides of the fence.




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

Search: