2 ms·
> I'm having trouble reading the code and being able to understand what exactly is happening. [...] > Alternate question: How the heck do you deal with situat
by dozzie 10y ago
> I'm having trouble reading the code and being able to understand what exactly is happening.
[...]
> Alternate question: How the heck do you deal with situations like this?
Rewrite the fragment so it's easier to understand. Because...
> [E]ach of [several nested] functions are present in different files (which are in different directories). (I'm sure there's legitimate reason for modularizing code to such an extent).
...you probably have code that works with several different abstraction levels
at the same time.
And no, there may be no legitimate reason to keep it that much split up (as
you call, "modular"). It may be just an abuse of overestimated DRY principle.