Hacker News new | past | comments | ask | show | jobs | submit login

I use my own migration utility using `psql < 01-up.sql`. Too obvious really.

Yes Rails does all that for you automagically but you can use a lightweight ORM like FastLegS. A model is as simple as this:

UserDao = FastLegs.Base.extend({ tableName: "users", primaryKey: "id" });

To expose it:

app.get("/user/:id", function(req, res) { UserDao.find(req.params.id, function(err, result) { res.json(result.rows[0]); }); });

Let's not forget about unit tests. I can run well over 100 test cases in just over ONE second! Rails is PAINFULLY slow at this.

I've done enough Rails to know how productive it is, and there are many things I miss. I'll argue though I'm more productive with node.js since we do most GUI with Backbone on the client. I can share code between client and server, for example validations.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: