Marcus Node Bits - Let us talk about Koa for a while, shall we?
March 31, 2014
Ok, let’s talk about KoaJs. Why? Well, it’s new and shiny. But that’s not it. And it’s tiny and stays out of your way. But that’s not it. It’s created by the awesome crew behind ExpressJs (and others). But that’s not it. It teaches me about new things. And really strange things. Like generators for example. But that’s not it.
No. The reason I really wanted to get your attention is something different altogether. This has to stop. I’m by no means a seasoned Javascript developer but I’m already starting to dislike the code callbacks forces me to write. Yeah, I know, there are ways around it with promises and everything, but still have a hard time grasping that. Sorry. I hope there’s another way ^^
I mean; “getUserFromDatabase()
… what would you expect that to return? An user? Or a promise maybe? I...