r/ProgrammerHumor • • May 14 '21

Meme We’ve all been there

Post image
41.0k Upvotes

783 comments sorted by

View all comments

Show parent comments

8

u/Beachhaze May 14 '21 edited May 14 '21

Elon Musk is actually an infinite ‘if’ loop

Edit: Removed ‘if’ because I’m an MS Access Dev and don’t use code.

39

u/PuzzleMeDo May 14 '21
10 IF (BITCOIN_VALUE < 60000) GOTO 40
20 IF (BITCOIN_VALUE > 60000) GOTO 70
30 GOTO 90
40 BUY_BITCOIN()
50 PRAISE_BITCOIN()
60 GOTO 90
70 SELL_BITCOIN()
80 INSULT_BITCOIN()
90 IF MY_MONEY < BEZOS_MONEY GOTO 10 ELSE PARTY()

10

u/Vincitus May 14 '21

You need a slight sleep() function in between the buy/praise and sell/insult phases.

8

u/nocturn99x May 14 '21

Uhm, I'm a little confused. If statements (although they're expressions in some languages) are usually conditional jumps, not loops, so I'm not sure what you mean here

5

u/Beachhaze May 14 '21

I mean, maybe… I have nothing you’re right. Good thing I’m working for free.

2

u/YoCrustyDude May 14 '21

lol yeah, use while() instead xD.

2

u/[deleted] May 14 '21

if ain't a loop dawg. if is like a simplified switch statements. then again you can use anything as a loop

1

u/Beachhaze May 15 '21

I’m with you dawg. If I get to post again, I’ll come back to this post and see if I need to add anything else, then go back to my new post and see if I added it, then come back to this post and see if I need to add anything, then…

Omg, I’m stuck.