From web application design and development point of view, how do Express and Hapi compare to each other? For basic examples they seem similar, however I\'m interested to le
I've started using Hapi recently and I'm quite happy with it. My reasons are
Easier to test. For example:
server.settings.cache gets current cache provider/test folders for any part of the app or supported plugins to see suggestions on how to mock/test/stub etc.It works out of the box e.g. file uploads, return streams from endpoints etc.
Essential plugins are maintained along with the core library. e.g template parsing, caching etc. The added benefit is the same coding standards are applied across the essential things.
Sane errors and error handling. Hapi validates config options and keeps an internal route table to prevent duplicate routes. This is quite useful while learning because errors are thrown early instead of unexpected behaviours which require debugging.