2 ms·
> How maintainable code is is measured in how many files you have to edit to add one feature. Trivially false: if all of the source code is kept in one file th
by naasking 3y ago
> How maintainable code is is measured in how many files you have to edit to add one feature.
Trivially false: if all of the source code is kept in one file then you only ever have to edit one file. No matter how many lines of code are in that file, any such system would be maximally maintainable by your definition.
Maintainability is not so clear-cut. It's currently an imprecise measure of organizational clarity that makes it straightforward to extend a system in ways that are needed or will be needed.