3 ms·
Even logical splits impede readability, because they require tracking and navigation during reading. Every new API has a cost.
by philosopher1234 5y ago
Even logical splits impede readability, because they require tracking and navigation during reading. Every new API has a cost.
- Fellshard 5y agoI take this approach for internal divisions within the same file. For external APIs, you're operating under a completely different set of constraints. As I recall, similar advice was in the original Clean Code: context guides which principles you apply.
- xboxnolifes 5y agoI agree. If a function is only ever likely to be used in the one place it was pulled out of, you're probably better off just using a comment instead.
- dragonwriter 5y ago> Even logical splits impede readability, because they require tracking and navigation during reading. IME, most reading of code has a specific focussed goal for which logical splitting allows not reading lots of irrelevant code you'd have to read if it was a non-abstracted mass.