Javascript callbacks - cannot live with them cannot live without them... or can you?
March 6, 2014
This is a confession post. Yes, I’m a phony too. I pick up some things very late. Like JavaScript. And Node and … well a lot of things.
But I’m sure that a lot of people have run into this and maybe, just maybe, there will be some others that haven’t run into it yet. So this might help someone. Or me, for that matter, when I come back to this problem later.
It has to do with callbacks. The things that Node is made up of. And how they confused me a lot. And how I grew to love them, then hate them, and finally get them. And right about that point realize that there’s another way.
Let’s see if I can explain this. Just as an experiment.
Everything in node is event-driven (as from their mission statement on the homepage) and non-blocking. Which means that you...