5 ms·
> "I'd like a better to organize my code or be able to hide the extra small functions so that they are not visible when I'm scanning a file to get an overview."
by Rotareti 10y ago
> "I'd like a better to organize my code or be able to hide the extra small functions so that they are not visible when I'm scanning a file to get an overview."
Most of the 'extra small functions' make good reusable utility functions from which you can build up an external utils lib with different categories for different functions to keep your main code clean. Reasoning about those 'extra small functions' makes you also become more aware of useful third-party code, like standard libraries and popular utility libraries. So most of the 'extra small functions' can go into an external lib and the rest goes into 'helpers' or alike. This way you can keep the files which contain the app logic clean and readable.