2 ms·
In general I find myself writing short functions because modern programming languages and libraries are powerful and there is not a lot of busy work. That said
by dasil003 16y ago
In general I find myself writing short functions because modern programming languages and libraries are powerful and there is not a lot of busy work. That said, if there is a lot to do and little opportunity for re-use, I have no problem with long functions. The primary criteria for creating functions should be clear interfaces that minimize abstraction leakage.