Reading npm's design philosophy , I found this statement to be rather bold and rather representative of the module mentality seen pervasive in the nodejs community:
- No lib folder : If you would put it in lib/, then it belongs in a separate module.
Here are a few other stmts as well
Design Philosophy
- No frameworks : Everything is done using small, simple, standalone modules that work with vanilla Node.js http servers.
...
Small Modules : No single JavaScript file should be more than about 200 lines.
...
Unceremonious MVC : No big MVC class heirarchy. Just have the route handler get some data, then hand it off to a template. Simpler is better.
No comments:
Post a Comment