4 ms·
but then you end up with a clusterfuck of classes?
by twelve40 3mo ago
but then you end up with a clusterfuck of classes?
- t-writescode 3mo agoYou’d be surprised how often this doesn’t end up happening, especially in languages that are supportive of this style: Kotlin, Python and Typescript, to name a few. A lot of functions you write are helper functions, wrapper functions, system functions, etc and all 3 languages support making things modules of interconnected concepts, extension functions, etc. You can make code very readable this way - arguably more readable. Have you ever had so many tests for a single class that you’ve broken the test class into a package and have a whole file / test class for each big method? Same idea! :)