4 ms·
I was going to argue with you about your comments about Javascript and callback hell, because a while back I figured out a nice, efficient pattern that pretty m
by antimagic 13y ago
I was going to argue with you about your comments about Javascript and callback hell, because a while back I figured out a nice, efficient pattern that pretty much removed it as an issue for me. But then I remembered reading somewhere that patterns are a code smell for a problem in a language.
So yes, you're absolutely right that callbacks would have benefited from in-language support, especially considering the mono-threaded nature of JS. Interestingly enough, my solution was very similar to the prototype chain of JS, which makes me think that a more generalised prototype chain concept, allowing multiple chains for an object, would have made a much stronger language.
- drieddust 13y agoI have struggled with this aspect of js. Would yoy mind sharing it.