Re:Ask HN: If your code no longer makes sense to you, do you...
by jlukecarlson on Sunday July 02, 2023 @09:36AM
(#36561371)
I’d start by either stepping through the program (gdb, pdb, or a debugger of your choice) or adding more test cases - that’s often a quick way to understand what a piece of code is doing.
Either way I wouldn’t leave it as is, that’s just a recipe for ensuring it becomes even more opaque over time
Either way I wouldn’t leave it as is, that’s just a recipe for ensuring it becomes even more opaque over time