I worked somewhere with a very old codebase and large defect rate that more often than not led back to things like "when this code was written 9 years ago we didn't need to / didn't bother to check for null!". I tried adding a "No new warnings" requirement to our pr checklist to start softly heading off the problem but it was always overridden by the reviewer and I didn't have sufficient buy-in to really really force the devs to do it.
It took an actual crisis with complete client database loss and the involvement of our very angry company president to get the change done. New development was shut down for almost two months while we did a warning and hardening pass.
And the defect rate plummeted. We went from having months with triple-digit user reports to months with zero. It was an awesome "I told you so" moment. I was hailed as a visionary hero and everyone clapped I was let go because dev management felt I'd sold out the devs to upper management to kiss ass and that the new requirements slowed development time too much.
It was bizarre. I genuinely don't think they thought it would work. I have so many fun stories just from those few months. They found an entire feature that they'd written and forgotten about that was hidden because it was added to a menu-list that was no longer in-use. One of our screens went from a seconds-long load time to instant when they fixed an issue causing an exception in every single WinForms Paint() call. A custom control had a static array of brushes that was created for each instance, sometimes dozens of times on the same screen, and was completely unused and never freed. I don't remember exact numbers but the memory footprint of the whole app dropped dramatically by the end. All that from ignored warnings.
49
u/Irravian Sep 23 '19
I worked somewhere with a very old codebase and large defect rate that more often than not led back to things like "when this code was written 9 years ago we didn't need to / didn't bother to check for null!". I tried adding a "No new warnings" requirement to our pr checklist to start softly heading off the problem but it was always overridden by the reviewer and I didn't have sufficient buy-in to really really force the devs to do it.
It took an actual crisis with complete client database loss and the involvement of our very angry company president to get the change done. New development was shut down for almost two months while we did a warning and hardening pass.
And the defect rate plummeted. We went from having months with triple-digit user reports to months with zero. It was an awesome "I told you so" moment.
I was hailed as a visionary hero and everyone clappedI was let go because dev management felt I'd sold out the devs to upper management to kiss ass and that the new requirements slowed development time too much.