…ause it’s certainly not helping to paint our increasingly embattled industry in any better a light. Reading these headlines, you’d think Facebook, and by extension, the tech sector in the Bay Area is the worst place in the world, full of jokers and jerks.
… increasingly complex scenarios. NASA even trust it for managing essential spacesuit data in space. For NASA, the ability to build a simple, end-to-end application with centrally located data at a small cost was what drew them to JS. If that’s not a first-class use, then what is?
[HPEs] are the ones least likely to put up with the frequent stupidities and workplace problems that plague large organizations; they are also the ones most likely to have other opportunities that they can readily move to. What tends to remain behind is the ‘residue’ — the least talented and effective [employees].
Since Node is single-threaded, that means that all your users are going to be sharing the same memory space. In other words, unlike in the browser, you have to be careful not to store user-specific data in closures where other connections can get at it. For this reason, I like to use
res.locals to store temporary user data that’s only available during that user’s request/response cycle: