upvote
Patching that up by using comments as a 'map' isn't the right way to deal with that. Refactors and rearchitecture are. Putting in comments just helps procrastinate what's necessary.
reply
> Patching that up by using comments as a 'map' isn't the right way to deal with that.

There is no right way. Only grey ones that help relieve pain for the team.

> Refactors and rearchitecture are.

Yeah... if you have the cash and the people. Usually, mature codebases are driven by limited investment with proven business value, because the sweet VC money is no longer there (or never was, in some industries).

reply
It's difficult to refactor and rearchitect without first understanding what's there and why.
reply
And yourself putting in comments is the solution to that?
reply
Rewrites require a lot of effort, significantly more than just adding comments. It’s a pragmatic tool until you actually have the time to do the rewrite.
reply
I never said rewrites.

And the more you put in procrastination-encouraging half-solutions, the worse your code base gets.

reply
Though the onus is on us to improve what our forebears wrote, for the sake of our own and others' future.
reply