2 ms·
In my personal experience, the small function thing can drive a maintainer bananas. When trying to understand code I haven't written, I have had the experience
by whiddershins 11y ago
In my personal experience, the small function thing can drive a maintainer bananas.
When trying to understand code I haven't written, I have had the experience that trying to trace logic and debug through a bunch of little functions is more cognitive overhead than just seeing everything that happens within one larger function.
I get the idea that small functions are supposed to be wonderful, and clear, if everything is named really well and everything works as the name implies.
But for me the downside is it ends up feeling like detective work. I have to jump around and remind myself exactly how each little function works just to figure out what exactly is happening.
My dream IDE would let me see "expand" every function call ... like with little dropdown arrows .. so I could see it as if it were inline, and could trace execution linearly in one solid block.