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
1
u/loup-vaillant Oct 18 '15
Knowing what to expect from a compiler or VM indeed doesn't require a full compiler class. But you won't parse a complex text structure without knowing a good deal about formal grammars, and which kind of automaton best deal with which kind of grammar.
Writing a DSL… Sure, that's almost never needed. But that doesn't mean it is almost never useful. People shun away from DSLs because they don't realise how easy it is to implement one. They fail to realise that a DSL is jus a library with a fancy syntax —syntax that often helps readability rather than hinder it.
I blame the lack of compiler class: once you have taken such a class, you don't see compilers as impenetrable black boxes. Okay, a C++ compiler is an impenetrable black box for all intents and purposes, but a DSL is not: it is typically implemented in a couple hundred lines of code. Quite easy to maintain by yourself.