I disagree, I think certain languages can easily lend themselves to obfuscated code, the classic case in javascript being "callback hell." You can argue that there are ways to get around callback hell but the fact of the matter is it takes a lot of effort, knowledge about the language to not make basic design flaws that are embedded within the language.
Callback hell is caused by an incompetent developer. Your code is not modular enough and you do not have a clear idea of what parts of your code depend on other parts. So you devise a laundry list of tasks that happens to work. The only way to express this laundry list in an asynchronous environment is callback hell. If you knew what you were doing, you would not have this problem.
You are not addressing my point, which is that callback hell is a very common and natural result of simply using javascript. To give a comparison of a programming language that avoids this issue almost entirely: Python's tornado or asyncio.
2
u/qudat Nov 18 '14
I disagree, I think certain languages can easily lend themselves to obfuscated code, the classic case in javascript being "callback hell." You can argue that there are ways to get around callback hell but the fact of the matter is it takes a lot of effort, knowledge about the language to not make basic design flaws that are embedded within the language.