Small Focused Modules

1 · Sindre Sorhus · Oct. 25, 2018, 6:24 p.m.
Make small focused modules for reusability and to make it possible to build larger more advanced things that are easier to reason about.This was originally an answer on my AMA (Ask Me Anything) about why I make small Node.js modules. My answer applies to Node.js and might not be applicable to your platform. The reason this works so well on Node.js is that you can have nested dependencies, so they never conflict.People get way too easily caught up in the LOC (Lines Of Code). LOC is pretty much ir...