Re:Koa – Next-generation web framework for Node.js
by rmrfrmrf on Thursday December 19, 2013 @12:29PM
(#6936150)
It's funny -- I love node.js for pretty much everything except for web frameworks. IMO Express, Koa, Sails, and Meteor are all lacking some kind of je ne sais quoi... maybe I should try my hand at one as an open source project...? Anyone have any good resources about framework design?
[ Parent
| on HN ]
Re:Koa – Next-generation web framework for Node.js
by tuxie_ on Friday December 20, 2013 @04:21AM
(#6940632)
I always felt that I didn't understand the node way of work, because all frameworks feel to me like they are missing something, like they are ignoring the good ideas built in other frameworks. Or maybe they are too functional for my OOP head.
I had to work with express, and one thing that I missed was having a Response object where you build your response and then pass back to the framework at the end of the request. So I built my own proof-of-concept-framework to understand why others don't do it (maybe it was just not possible).
Many people will tell you that there are a thousand frameworks out there, go contribute to one of those instead of creating more noise. For me doing a framework was a great way of learning the internals of node, the kind of things that frameworks are designed to hide away from you. Go for it, start your own open source framework and put your ideas into practice. The ecosystem is still maturing.
Re:Koa – Next-generation web framework for Node.js
by cnp on Thursday December 19, 2013 @02:10PM
(#6937002)
Check out Sails.js. It's under active development, but I've used it for a few things and find it totally fantastic:
Re:Koa – Next-generation web framework for Node.js
by krsunny on Thursday December 19, 2013 @07:38PM
(#6939087)
Yea Sails is awesome but I feel like the devs have been putting the community on the back burner lately. Its ORM is off to a good start but I find myself writing a bunch of hard to maintain SQL because of the things yet to be implemented, like joins. Also, Windows support could use a ton more testing/attention.
Re:Koa – Next-generation web framework for Node.js
by bwilliams on Thursday December 19, 2013 @02:54PM
(#6937344)
I haven't touched it ever since I saw you can create records with GET requests by default. Did they ever fix that?
Re:Koa – Next-generation web framework for Node.js
by particlebanana on Thursday December 19, 2013 @05:21PM
(#6938348)
That has always been a config setting that should absolutely be turned off.
Re:Koa – Next-generation web framework for Node.js
by bwilliams on Thursday December 19, 2013 @05:53PM
(#6938558)
Is it default? I remember seeing the screencast when it was first gaining traction and immediately dismissing it. That should be something that isn't even included tbh.
Re:Koa – Next-generation web framework for Node.js
by krsunny on Thursday December 19, 2013 @07:41PM
(#6939106)
I think the benefits it provides outweighs the slight chance that someone would ship code to production with it turned on.
Re:Koa – Next-generation web framework for Node.js
by cnp on Thursday December 19, 2013 @11:06PM
(#6939868)
I agree. It has been extremely useful during development
Re:Koa – Next-generation web framework for Node.js
by rmrfrmrf on Friday December 20, 2013 @10:16PM
(#6945555)
lol I listed Sails though--my problem with sails was that their website promised tomes upon tomes of documentation; come to find out the copy on the website is all boilerplate and none of the docs have been completed yet.