It doesn't matter if the module is one line or hundreds.
It's all about containing complexity.
Imagine if PC manufacturers all made their own CPUs.
Before Node.js and npm. I had a large database of code snippets I used to copy-paste into projects when I needed it.
Do you make your own shoes? No, you buy them in a store.
I want programming to be easier.
charlie21
2016-03-24 10:30:29 +08:00
redefine 专注
stupidcat
2016-03-24 10:30:39 +08:00
It doesn't matter if the module is one line or hundreds. It's all about containing complexity. By making small focused modules you can easily build large complex systems without having to know every single detail of how everything works.