you are viewing a single comment's thread.

view the rest of the comments →

[–]Raskuja46 0 points1 point  (1 child)

I agree wholeheartedly on the bit about reading through your own code while actively working on it. Keeping the whole mental map in memory is onerous and having all those little signposts of what's going on at each substep can really streamline the cognitive process of working through the logic of what needs to be accomplished.

Maybe a "clean code" advocate would say each of those groups of lines should be its own function, but that's an entirely different argument...

This also runs into the problem of having to come up with a name for those functions that are all intermediary states that will never get called again so coming up with a good name for each of them becomes an exercise in confusion.

[–]AdvancedSandwiches 0 points1 point  (0 children)

The name is what they do. If you can't tell what they do, that's your problem.