4 ms·
Callback hell was real, especially if you worked on projects that decided to join the node.js bandwagon in its early days. Then promises happened. https://twit
by sah2ed 9y ago
Callback hell was real, especially if you worked on projects that decided to join the node.js bandwagon in its early days. Then promises happened.
https://twitter.com/winterbe_/status/541868081308790784 https://twitter.com/winterbe_/status/541868081308790784
- mikewhy 9y agoWhy post a contrived meme as an example? Especially one with a sane solution[1] just below. [1]: https://pbs.twimg.com/media/B4W2AmaCAAA-heo.png https://pbs.twimg.com/media/B4W2AmaCAAA-heo.png
- sah2ed 9y agoIt's an exaggeration, yes, but it does correctly summarize how I felt when I had to work with node.js code bases before stuff like promises became mainstream.
- andreime 9y agoAn exaggeration could be written for any language. A decent programmer would not write code like the one you showcased as an example for callback hell. This https://docs.spring.io/spring/docs/2.5.x/javadoc-api/org/springframework/aop/framework/AbstractSingletonProxyFactoryBean.html https://docs.spring.io/spring/docs/2.5.x/javadoc-api/org/spr... is not an exaggeration and I still would not use it to showcase how I felt when I had to work with Java developers.