Express 3.0.0 alpha1 and Express 4.x Roadmap
tjholowaychuk.com
tjholowaychuk.com
Monolithic frameworks are plentiful in the PHP community, but recently some of the larger frameworks have started moving toward this aggregate component model. Unfortunately, the PHP frameworks are much older than node.js, so many of the corresponding micro-communities are entrenched in the idea that their framework is "best". This means that while it is awesome that frameworks are allowing you to consume individual components, you still do not see it happening very frequently. You almost never see the frameworks themselves sharing components, for example.
Obviously the module system baked into node.js helps steer the community toward the concept of consuming modules, but I'm optimistic that the community is also young enough to completely embrace the idea of frameworks being little more than aggregates of the most common modules for building apps and also that "sharing" between frameworks is not something to frown upon.
http://bergie.iki.fi/blog/composer_solves_the_php_code-shari...
There are a few changes that worry me:
* req.get() instead of req.header() - 'get' is an ambiguous word here, might be confused with req.params(). I'd keep the overloaded req.header() just dropping the `defaultValue` parameter
* res.render(404, 'not here') doesn't work anymore. res.statusCode goes against the rest of the 'minimal' api like res.xhr and res.type
* removal of layout/partials (but curious to see what will come out of it)
The Django community has issues with this from time to time, where packages sometimes don't include any templating, leaving people to guess at what needs to be there.
I don't know of an obvious solution though, except maybe a kitchen sink example of some sort. Thoughts?
The framework is very powerful and we can push code very fast using it so no regrets!
The only problem for me as automated testing and in result I have written my tests in Python.
To a Ruby developer like myself, this seems like a pretty significant gap.
Have you looked at Jasmine or some of the other testing frameworks for Node? Or is there something inherent about writing async apps that makes them difficult to test?
Client side async code has its own place as well. I really enjoyed writing complex load tests with node. That was simpler than investigating python options and node is faster in such scenario.
A lot of it definitely comes down to API, but when it comes to callbacks I would agree