When a code rot can be the difference between life and death.
In 2018, a 9-year-old girl who had type-1 diabetes her entire life was being misled by her trusty medical applications on her smartphone. If these misleadings were not investigated by her father, Jeremy Vaughn, she could have faced critical and fatal medical consequences. Her medical check-up app with a continuous glucose monitor (CGM) failed. “Features were disappearing, critical alerts weren’t working, and notifications just stopped,” he stated. As a result, his nine-year-old daughter, who relied and lived her whole life on the CGM alerts, had to live on instincts.
These apps were downloaded by Jeremy in 2016 for his daughter but by 2018, despite regular updates, these apps were now outdated and almost non-functioning. Jeremy checked the reviews on these apps and several patients had complained about malfunctioning apps and how they directly affected their health in a critical way. All this was due to the rotting code in these applications. They were regularly updated but only in variations of minor patch upgrades or bug fixing. As the environment around a code changes, the code needs to be revisited regularly especially in medical and automation fields. A code rot in your Tesla might prove equally fatal as a code rot in a medical check up application.
With rotting code, the earlier the problem is dealt with, the easier it is to overcome. The longer you leave it, the harder it is to fix. Code rot frequently occurs when minor changes to the code are made without fully shifting the structure of the code around the change. It leaves a lot of unused or new code that requires dependencies that aren't modified. The only viable solution to the problem of code rot is to be aware of the problem, and to make regular small fixes to avoid it getting out of hand.

Comments
Post a Comment