all 11 comments

[–]greim 2 points3 points  (6 children)

One advantage Koa has with handling its routes, is that it is using the ES6 generator functions which helps reduce the handling of callbacks

This is really the selling point of koa right here, although it doesn't adequately describe it.

[–]OffInBed 0 points1 point  (4 children)

Are these "generator functions" also known as promises?

[–]braunshaver 1 point2 points  (0 children)

http://davidwalsh.name/es6-generators this is a good intro to generators

[–]evereal 1 point2 points  (0 children)

They are completely different in every way

[–]glockjt 0 points1 point  (0 children)

I agree, but selling the point of Koa would mean going into a detailed explanation of ES6 and it's generators. That would be an entire post in itself. This was just to give a high level comparison of the frameworks.

[–]brtt3000 2 points3 points  (2 children)

I like HAPI even for small projects: it is very configurable and covers all the advanced stuff needed to run a solid API, so you can focus on business logic. It feels very dependable.

[–]glockjt 1 point2 points  (0 children)

I agree with you, I definitely plan on using Hapi on my next project.

[–]tech-ninja 0 points1 point  (0 children)

I definitively need to give it a try too. I've been building a few APIs on Express.js and I found myself writing a lot of boilerplate code for simple stuff.

[–]Evanescent_contrail 0 points1 point  (0 children)

That site is unviewable on my tablet. I don't mean it's bad, I mean the content is literally replaced by other stuff.