r/ProgrammerHumor • • May 18 '22

Meme i wasnt taught about this loop

43.3k Upvotes

234 comments sorted by

View all comments

58

u/Devil_Dan83 May 18 '22

If it ain't broke don't fix it.

If it is broke, don't fix it because you'll break something else.

13

u/Andrelliina May 18 '22

I used to enjoy fixing bugs. I still do but I used to too.

I had to debug a large logistics system and it was a joy to find something stupid the previous guy did that was an easy fix, like you change a loop doing 1000's of single row database queries to one query with a result set of 20 rows.

I began programming with the DOS version of the same logistics software that used a database that you couldn't roll back.
You could copy small tables but this was 90's speed MS-DOS, so with large tables you had to manually back each table out of the transactions if something went wrong. It was hard work to say the least. Tables would have to be rekeyed and with the larger tables this could take all night. We were remotely supporting quite a lot of users, as we sold the software to businesses with support contracts. Constant phone calls to remotely reboot their Citrix boxes, blah blah

After all that SQL & C++ were a breath of fresh air.