3 ms·
I'm often a fan of single source files, at the package level, including inline embedded API docs and unit tests.
by neilv 4y ago
I'm often a fan of single source files, at the package level, including inline embedded API docs and unit tests.
- tinglymintyfrsh 4y agoThat doesn't scale because it makes merging and file navigation nearly impossible, and the increased cognitive load is too much for anything real. Encapsulate functionality and break it into logical containers. That's what modules are. That's what files are. That's what functions are. That's what software engineering is.
- neilv 4y agoSometimes it does scale.