TC is similar to a jump call but stores a return value in a specific register, in other words, it's a type of basic function call. Judging from the context of the rest of the code in this block, I'd guess it is a series of safety checks that set the DOWNFLAG, likely disabling the system if something unexpected happens. The comment # TEMPORARY, I HOPE HOPE HOPE is probably due to an issue they were having with bank angle that shouldn't exist. So the (undesirable) solution was to have the system turn itself off if this issue popped up until they could figure it out. This doesn't mean that the original issue wasn't fixed, just that the temporary code wasn't removed.
Yeah right who looks at all of their TODOs, much less any of them, unless you notice them when you're fixing the thing because something new needs it to work a certain way, and forgot you had already thought about that a long time ago and never did it.
Eh sometimes you just gotta go with it. In the grand scheme of things, if some app that turns receipts into pdfs gets the phone number and receipt number mixed up at 11:59pm on tuesdays, it's not that big a deal. Just write a regex validation to check their format and output to a log file that no one ever looks at until it becomes the only source of training data for your startup's attempt at machine learning.
fml. I had to debug code, more than 10 years old that displayed row data. it was supposed to display data from a single row, but thanks to the previous programmer’s intractable wit and tendency to mix global and local variables, it succeeded in pulling each value from a different row... sometimes.
I've heard wise word from my colleague: "If this feature doesn't work or works terribly, and nobody bothered to report it for months, it means nobody is using it"
1.5k
u/evanldixon May 16 '20
Ship it now, we'll fix it in the next version.
(Bug remains for decades.)