2 ms·
"With node.js... you really, truly and most awesomely don't worry about race conditions." Most of node.js's fanbase well and truly believes this nonsense, that
by mcmc 16y ago
"With node.js... you really, truly and most awesomely don't worry about race conditions."
Most of node.js's fanbase well and truly believes this nonsense, that you can't have race conditions simply because there is no pre-emption of your running code. In fact, single-threaded, event-based logic can very easily end up in situations where the timing or ordering of network frames impact a response in an unanticipated manner.
- silentbicycle 16y agoHell, you can even get race conditions in Erlang. Despite a fully immutable model. Joe Armstrong makes a point of introducing them early on, so people know to watch for them. Avoiding parallelism removes several kinds of race conditions, sure, but not all of them. You have to know how they occur, how to prevent them. You can't just use node and hope they all go away.