News for hackers. Stuff that matters.
Re:Ask HN: Better code readability/reviewability by dozzie on Tuesday November 08, 2016 @08:51PM (#12905508)
> 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.

There are no comments on this comment yet.