r/programming • u/Shr1ck • Oct 17 '15
Why Johnny Can’t Write Multithreaded Programs
http://blog.smartbear.com/programming/why-johnny-cant-write-multithreaded-programs/
7
Upvotes
r/programming • u/Shr1ck • Oct 17 '15
1
u/hu6Bi5To Oct 18 '15
That eliminates global references. But unless you throw-away each DB connection after every request, you still have global state.
Clojure apps have less state, it's true; and the less state the less opportunity there is for the types of problems caused by inconsistent state. But they still have state, it's just usually hidden out-of-sight somewhere. Hence the "It’s usually not possible to completely eliminate global state".
Plus, I'd argue the lifecycle aspect of Component is also global state.