News for hackers. Stuff that matters.
Re:Geddy - A modular web framework for node.js by nexneo on Sunday August 08, 2010 @01:25PM (#1585672)
Perfect. Just what node.js need now, another web framework. I just can't decide which one to use.
Re:Geddy - A modular web framework for node.js by iamwil on Sunday August 08, 2010 @09:52PM (#1586743)
I 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.

Re:Geddy - A modular web framework for node.js by tobyhede on Monday August 09, 2010 @03:18AM (#1587256)
I 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.

Re:Geddy - A modular web framework for node.js by swah on Sunday August 08, 2010 @04:55PM (#1586137)
Same here. For displaying plain text strings any of those is good, but how can I do authentication/sessions?
Re:Geddy - A modular web framework for node.js by bitboxer on Sunday August 08, 2010 @02:31PM (#1585823)
I 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?

Re:Geddy - A modular web framework for node.js by bootload on Sunday August 08, 2010 @08:23PM (#1586589)
"... 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.

Re:Geddy - A modular web framework for node.js by i386 on Sunday August 08, 2010 @08:55PM (#1586637)
Re:Geddy - A modular web framework for node.js by ehsanul on Sunday August 08, 2010 @02:35PM (#1585833)
The curse of choice... (no sarcasm intended)
Re:Geddy - A modular web framework for node.js by netghost on Sunday August 08, 2010 @10:49PM (#1586855)
Geddy seems to be more of a full stack than most of the other options from what I can tell.
Re:Geddy - A modular web framework for node.js by washingtondc on Sunday August 08, 2010 @09:34PM (#1586706)
Thanks for the Rush reference in the example (I'm not talking about the name of the framework either).
Re:Geddy - A modular web framework for node.js by gorm on Monday August 09, 2010 @01:50AM (#1587126)
It's great to have such a rush from different developers. A "winner" will sooner or later emerge but the quantity of frameworks just show how many clever people are flocking around node.js.
Re:Geddy - A modular web framework for node.js by jpcx01 on Sunday August 08, 2010 @07:30PM (#1586490)
Looks cool. I concur with everyone else... how do we decide which web framework to rally behind a build a strong community?
Re:Geddy - A modular web framework for node.js by jamesbritt on Sunday August 08, 2010 @11:29PM (#1586914)
You don't.

You should find the one the best suits what you want to do, but also encourage others so as to avoid a monoculture.

Having multiple communities exploring different ideas is a Good Thing.

Re:Geddy - A modular web framework for node.js by jpcx01 on Monday August 09, 2010 @08:13AM (#1587724)
Who says I want monoculture. However when one framework breaks out and gets traction, then you get a lot of things as an end user. Documentation, stability, plethora of open source plugins. Are these things so terrible?
Re:Geddy - A modular web framework for node.js by ssutch on Sunday August 08, 2010 @08:36PM (#1586606)
"Which?" Really? Just start a project and decide that way you pansies.