r/ProgrammerHumor • • May 16 '20

The meaning of everything

Post image
35.0k Upvotes

533 comments sorted by

View all comments

Show parent comments

1.5k

u/evanldixon May 16 '20

Ship it now, we'll fix it in the next version.

(Bug remains for decades.)

0

u/[deleted] May 16 '20

[deleted]

165

u/SaggiSponge May 16 '20

The code for Apollo 11 contains my two favorite lines of code ever written

(Lines 179 and 180 in case the link doesn't work)

49

u/Flames15 May 16 '20

Enlighten us, the lowly high level programmers. Please.

0

u/[deleted] May 16 '20

[deleted]

61

u/SaggiSponge May 16 '20

Yes, the comments are what amused me. I have no idea what the code is actually doing, lol.

4

u/[deleted] May 16 '20

It's code to put people on the moon.

→ More replies (4)

33

u/Ruggie1of1 May 16 '20

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.

→ More replies (1)

15

u/SuspiciouslyElven May 16 '20

BANKCALL rofl

Totally get it

5

u/phaelox May 16 '20

Explain, please?

15

u/amazondrone May 16 '20

I think he was being sarcastic, I don't think he gets it.

I don't get it, either.

→ More replies (1)

58

u/[deleted] May 16 '20

Fuck, welp, I need to revert a lot of my programs back then.

13

u/sviridovt May 16 '20

Looks at all of my TODOs

5

u/WesleySnopes May 16 '20 edited May 18 '20

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.

5

u/TayAustin May 16 '20

This rule apply to most things, from programming to engineering to geopolitics

→ More replies (2)

5

u/_TickleMeElmo_ May 16 '20

I heard it phrased "Noting more permanent then a temporary solution"

3

u/jackk445 May 16 '20

Marketing will sell it as a feature

47

u/metasymphony May 16 '20

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.

/s

4

u/coldnebo May 16 '20

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.

No one noticed the data discrepancy in 10 years.

4

u/ArionW May 16 '20

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"

→ More replies (1)

23

u/[deleted] May 16 '20

−2,147,483,649 beers, please

12

u/Ser-Pineapples May 16 '20

We'll let the modders fix it

13

u/Galaxyman0917 May 16 '20

Slow down there Bethesda

→ More replies (4)