I think it was CodeWarrior for the PS2 or PSX (definitely a playstation compiler around the year 2000) we were having issues with byte alignments. Eventually we discovered that the tokenizer was including commented out code which was then used as a part of padding/alignment and you could break the ABI by changing comments. Those comments were locked into place, even after they were no longer relevant and flat out wrong. It was horrible.
And suddenly you have to spend resources chasing down every other hack which was put into place to fix the stuff. PSX/PS2 were real-mode memory. It was common to directly access raw addresses and implement pointer math on top of that. Removing all comments in the primer would have gone from "okay here's one big headache we are aware of" to "we have no idea where all these small headaches are coming from."
Well yeah if it was already worked around without knowing the cause in multiple other places, then that's a problem. Otherwise it's just a full rebuild the world once fix though.
That's because it's full of side effects that make things work, which means that replacing it with something better will break things and be much more work than it should be
Yep, if you ever need to clean up a temporary fix, it has to happen immediately or it never will. That means you have to do it now, as part of the pants-on-fire fix. No one else can even see the problem, so it's on engineering to drive it.
2.0k
u/dasmau89 Nov 25 '22
Nothing is as permanent as the temporary solution