I sense the uncomfortable vibe this topic brings to some, and I have recently ran into this little video:
Charlie Crane: Game server development in node.js -- JSConf EU 2013
These good Chinese fellows are pretty much tackling this topic, in a serious scale. Open source, too. Great stuff. Video has some interesting statistics towards the end. I don't know any details, personally. Their code seems clean.
Well, that's nice.. watched the video and looked up their source.. seems really massive (lots of code comments in Chinese) .. too bad that their example demo seems to run at bad server or with even worse bandwidth? downloading simple .js files takes likes 15 sec and executing game never get past 98%.
However, I would really like to hear why you describe that vibe to be uncomfortable ?
Check out this link, about how a single missing "var" statement ruined the launch of a product: http://blog.safeshepherd.com/23/how-one-missing-var-ruined-our-launch/
Yes, I think the problems of that is somewhat tackled down with automatic jshint (on save) including for example. JsFormat/EditorConfig etc. plugins for sublime, this all requires ofc. that you set those up and full team who is developing is committed to do so. Because jshint actions can be made run on save you really can't push code without var etc. to repository. I really like jshint, just set rules to your js once and start coding. (ok, if you are dumb you can ignore the warnings in console and just go with it).
Edited by maunovaha, 17 February 2014 - 08:11 AM.