Hacker News new | ask | show | jobs
by akvlad 4968 days ago
I'll agree with many of the guidelines, but some are just personal taste. For instance, I like to indent my JS with 4 spaces and so does Douglas Crockford (http://javascript.crockford.com/code.html)
1 comments

I prefer to emulate the prevailing standard of my server side language when it comes to indentation, so when I'm working with PHP in the back end it's 4 space when I'm working with Ruby it's 2.