News for hackers. Stuff that matters.
Re:How One Missing `var` Ruined our Launch by dbattaglia on Tuesday November 01, 2011 @08:08AM (#3181612)
Well I don't think web browsers are really the same thing as server side code. Even individual pages in a browser are sandboxed from each other. Just like individual request/response cycles for a user session probably should be on the server (unless you go out of your way to break that, ie making some variable "static").
Re:How One Missing `var` Ruined our Launch by bzbarsky on Tuesday November 01, 2011 @09:47AM (#3181962)
My point was that nothing inherent to JS forces sharing of a single global object across everything you do. The embedding (Node in this case) fully controls the granularity of such sharing.