I love deleting code

100% of your bugs live within your codebase. (*Disclaimer- your bugs, not issues caused by downstream systems, infrastructure etc.) Why give your bugs a place to hide? Take that leap, delete that old class. Clean up those unused parameters/imports/variables/dependencies. Convert those TODO's to tickets in your issue management tool. Clean up those commented out logging lines. I promise it will all still exist in the history of your source control tool. But right now, YAGNI (Ya ain't gonna need it). Less LOC - less place for bugs to hide. Do the right thing. Delete it.

Feb 19, 2025 - 12:46
 0
I love deleting code

100% of your bugs live within your codebase.

(*Disclaimer- your bugs, not issues caused by downstream systems, infrastructure etc.)

Why give your bugs a place to hide? Take that leap, delete that old class.
Clean up those unused parameters/imports/variables/dependencies.
Convert those TODO's to tickets in your issue management tool.
Clean up those commented out logging lines.

I promise it will all still exist in the history of your source control tool. But right now, YAGNI (Ya ain't gonna need it).

Less LOC - less place for bugs to hide.

Do the right thing. Delete it.