r/programming • • Nov 17 '14

Rob Eisenberg: "Leaving Angular"

http://eisenbergeffect.bluespire.com/leaving-angular/#
185 Upvotes

104 comments sorted by

View all comments

Show parent comments

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.

1

u/jnt8686 Nov 18 '14

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.

1

u/qudat Nov 18 '14

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.

1

u/flukus Nov 18 '14

Callback hell isn't from java script, practically every language has to do the same to keep responsive UIs.

It's a library issue, nothing to do with the language.