HNHacker News
TopNewBestAskShowJobs

debbar

7 karma · joined December 20, 2013

submissionscomments
debbar··on Why is routing so complex?
Express is definitely better than the others. But I still think it has a bloated API that's not strictly necessary. For example, you still have to learn about the gazillion methods on the Response object. Why not simply return a POJO response object: `{ headers: [...], body: '...' }` ? And if it needs to be async, we could return a promise that resolves to a simple response object.

This is the first time I'm hearing about `page`. I'll check it out.

debbar··on Why is routing so complex?
That's exactly my point @arkitaip :)