Re:Twenty five thousand dollars of funny money
by macintux on Saturday December 03, 2022 @01:37PM
(#33846018)
Something I learned long ago, but occasionally disregard to my peril: if you see something that looks like a bug, but the code/system still works, stop and figure out why it works.
It's very easy to mentally shrug and move on, but more often than not it comes back to bite you; maybe it's a code path that's rarely triggered, e.g.
Re:Twenty five thousand dollars of funny money
by Winsaucerer on Saturday December 03, 2022 @08:23PM
(#33849534)
I have the same policy for similar circumstances. Sometimes, something isn't working, and I make a change that fixes it, but I didn't expect that change to fix it. Almost always it's worth me investigating why it's now working, because it indicates a deeper problem that would come back to bite me.
Re:Twenty five thousand dollars of funny money
by Waterluvian on Saturday December 03, 2022 @01:07PM
(#33845702)
Oh wow. Was there a “stomach sank to the floor” sudden feeling upon discovery?
Re:Twenty five thousand dollars of funny money
by ThePadawan on Sunday December 04, 2022 @11:19AM
(#33854956)
Not really. The whole thing was kept together with tape and silly string anyway, and I bet it still is now, more than 5 years on.
Re:Twenty five thousand dollars of funny money
by russianGuy83829 on Saturday December 03, 2022 @01:05PM
(#33845682)
how did that work out in the end?
Re:Twenty five thousand dollars of funny money
by ThePadawan on Sunday December 04, 2022 @07:31AM
(#33853090)
I mean, no problem ever occurred. Things just accidentally worked even though they shouldn't, and that isn't a bug.
The introduction of the additional types everywhere did turn into massive headaches based around dependency management and versioning.
So overall, I was personally disappointed in the results, but nevertheless happy to work with less "icky" feeling code.
Across the entire codebase, we discovered an entire class of bugs that only never cause any issues because all the important rows in all the important tables had Id 1 (e.g. Currency 1 was USD and Country 1 was USA) - so in a few places where the ints got mixed up, the correct row was still accidentally looked up in the wrong table).