4 ms·
I thought the 'Rails' approach with tons of magic and thick layers of abstraction as one monolithic something does not reflect the Node mindset of being modular
by bonn1 12y ago
I thought the 'Rails' approach with tons of magic and thick layers of abstraction as one monolithic something does not reflect the Node mindset of being modular. With Express, Koa and other minimal stacks the Node ecosystem is quite happy and maybe thats the key motivation they moved to this stack. Almighty Rails-esque frameworks—or already the word 'framework' is a bit a thing of the past. Small one-purpose libs are the way to go, at least in Node-land or did I miss anything?
- mikermcneil 12y agoLegitimate point-- at the same time, conventions help you get stuff done. They way I solved that in Sails is by federating the monolithic framework logic into smaller modules that can be disabled or overridden (see http://sailsjs.org/#!/features http://sailsjs.org/#!/features) Working on going further down this approach w/ machines- effectively a container layer on top of JavaScript functions (https://www.youtube.com/watch?v=72jI0dQx7pw https://www.youtube.com/watch?v=72jI0dQx7pw)