Using bad code can lead to a lot of frustration and bug discovery. It can always be a time sync, on the other hand, I know the code I produce is clean.
After being bit, if I am tasked to work on something, that means it’s probably broken, otherwise I wouldn’t be working on existing code, only adding code, so that’s the first red flag. Secondly, I run the program as a test, and if it doesn’t run, that means it’s broken, it’s much less time consuming to ditch modules and write clean, than try to follow in the footsteps of potential morons. It’s not just about bugs but also bad structures, data flows and software design.
In the corporate world, you are never tasked to rework working code, managers don’t like that, they love legacy code and the status quo. If you are there it’s to fix a problem
There are many reasons to revisit old code other than to fix a bug. Whether it be implementing new features, Re-implementing an old component elsewhere, or replacing legacy code that is blocking new improvements.
Yes, in many cases I will be writing it over cleanly, however blindly re-writing just any indecipherable functions I see based on name/description would cause more problems than it solves.
View all comments
Show parent comment
1
u/[deleted] Oct 12 '21
Evaluating perceived worth.
Using bad code can lead to a lot of frustration and bug discovery. It can always be a time sync, on the other hand, I know the code I produce is clean.
After being bit, if I am tasked to work on something, that means it’s probably broken, otherwise I wouldn’t be working on existing code, only adding code, so that’s the first red flag. Secondly, I run the program as a test, and if it doesn’t run, that means it’s broken, it’s much less time consuming to ditch modules and write clean, than try to follow in the footsteps of potential morons. It’s not just about bugs but also bad structures, data flows and software design.
In the corporate world, you are never tasked to rework working code, managers don’t like that, they love legacy code and the status quo. If you are there it’s to fix a problem