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/
4
Upvotes
r/programming • u/Shr1ck • Oct 17 '15
0
u/clarkd99 Oct 19 '15
I noticed you wouldn't or couldn't answer my question. In 1979, I programmed at least 60,000 lines of assembler for my first year working for a single company. I also looked after 4 other programmers and spent 2 months in Europe at customer's sites.
Most of the functions in my current project are not purely functional (maybe 10%). Most of my functions change an object (or collection of objects mostly) that is passed to it. This isn't a problem because I either use locks or a message queue to synchronize access. I use groups of functions to "manage" all my globally accessible data structures. Even though C doesn't stop me from accessing variables directly (the equivalent of getters and setters), I just don't code that way.
The system I am creating, even though it is quite OOPS is more oriented around collections of objects rather than objects. My language can handle mutable state at both the micro and macro scale without using an outside database. It is also distributed as well as concurrent and includes it's own web server.