by VBprogrammer · 7y ago · 0 comments
Other developers will simply assume the previous developer was an idiot and bash in the fix.
I feel like in this case a lot of people are assuming the engineering team were idiots, or criminally trying to make an aircraft which didn't pass safety standards. Rather than taking a look at what caused the bug in the first place.
> if (pPointer == nullptr) { return; }
> Crash is fixed!
I mean sure... but that's not the problem. Why was pPointer null here in the first place? So few people take the time to understand that :(
Because "fix this null pointer exception" is ticket number 14 this week, and your PM just wants it checked off. They don't want to hear that you need another week of digging through layers of spaghetti to track down the source; that doesn't bode well for their KPI goals.
This is a systemic issue in the way software companies function.
That is exactly the case of Chesterton's fence (JFYI):
So there were failures at almost every level it seems.
They aren't failures, they were designed in. There are forced at work, since the 80's, that have been trying to kill effective government institutions because they are seen anti-free market (the exact quote was "My goal is to cut government in half in twenty-five years, to get it down to the size where we can drown it in the bathtub."[1]).
This is the end result, as are E-coli outbreaks, etc. The government is being made ineffective so people can stand and point "see, I told you so, and we need to move this to the private sector were it will be done properly."
[1] https://www.brainyquote.com/quotes/grover_norquist_182534
What I don't get is how this drifting compounding boundary condition wasn't caught during formal modeling?
We are increasingly reliant on systems that have poor closed loop behavior with little to no memory. We need to design systems that are redundant, that have short and long term memories and have domain knowledge to compare their internal understanding of the universe with. And these autonomic systems need to alert the operators on what they are doing, why they are doing it and how to turn it off.
I think it’s worth avoiding working in teams with devs that do that. It’s a nightmare.
The only excuse is an inexperienced dev, and this should be picked up during code review and they are told why it’s a bad idea to chuck in fixes without considering surrounding code.