6 ms·
Perfect. Just what node.js need now, another web framework. I just can't decide which one to use.
by nexneo 16y ago
Perfect. Just what node.js need now, another web framework. I just can't decide which one to use.
- bitboxer 16y agoI would love to see a comparison and details what framework to use when. I can't decide, as well. Someone with more insights reading this?
- ehsanul 16y agoThe curse of choice... (no sarcasm intended)
- swah 16y agoSame here. For displaying plain text strings any of those is good, but how can I do authentication/sessions?
- bootload 16y ago"... Perfect. Just what node.js need now, another web framework. I just can't decide which one to use. ..." Usefulness can also be measured in viewing the source code to see how its structured.
- i386 16y agoHere are a few comparisons: http://www.infoq.com/articles/nodejs-frameworks http://www.infoq.com/articles/nodejs-frameworks
- iamwil 16y agoI tried a couple of them recently. From (fab), to josi, to express. And while (fab) is interesting conceptually, its syntax doesn't lend itself to easy understanding of which parts have a single, double, or ternary arity. Since it's basically chaining functions, the syntax highlighter can't tell the difference between the different parts w/ different arities. Josi works pretty much as expected, especially if you're familiar with Sinatra. However, what doesn't make sense about it at all is that the http response is expected as a return from the controller methods. That doesn't make sense at all, since in order to take advantage of node's asynchronous nature, your database calls also need to be asynchronous--and this is usually done through anonymous function callbacks. I think this is the most important aspect to watch out for in the node.js frameworks. Express doesn't suffer from this problem, and it also uses the Connect middleware. So far so good, and it's small enough that it's understandable. I haven't checked whether any of these frameworks pollute the global namespace, but it doesn't seem like a problem yet.
- tobyhede 16y agoI recently evaluated the state of the art in node.js frameworks for a project and came to some similar conclusions. (fab) is incredibly cool, but lacks some maturity and the code is very dense and hard to reverse engineer. geddy looks like a very solid framework, but I prefer having something a little more configurable and pluggable ... these types of things are coming, but geddy is a little too opinionated for my taste. connect and express are what I am going with - in terms of heritage these are much more akin to sinatr/padrino, where geddy is a bit more railish. express/connect has a solid development team, burgeoning communitt and an agile and flexible underlying philosophy. In a world where the dust is yet to settle on a default stack, I think having fewer opinions is actually a win ... as time progresses and there is a clear choice in node-land this will be less of an issue. but for now, loose coupling and high cohesion are the order of the day.
- netghost 16y agoGeddy seems to be more of a full stack than most of the other options from what I can tell.