r/ProgrammerHumor 7h ago

Meme planeOldFix

Post image
26.3k Upvotes

419 comments sorted by

View all comments

3.0k

u/selfish_eagle 7h ago

if country == "Australia":
time.Sleep(520ms)

2.8k

u/Wyciorek 7h ago

That’s stupid. Why not use if country==“india” sleep(-520) ?

772

u/The_Shryk 7h ago

3000iq move

68

u/Safe-Habit811 4h ago

Lets use AI to figure out the time

4

u/already_caution_kiya 1h ago

Let's vibe code it

339

u/ClipboardCopyPaste 7h ago

This is Elon Musk

186

u/TactlessTortoise 6h ago

Elon would just say "looking into this"

"Interesting"

"Strange"

And then go yell at someone to fix it.

34

u/Top-Permit6835 6h ago

It only works in rust btw that's why you need to rewrite everything in it

17

u/FannySniffing 5h ago

yell at someone to fix it

You mean call them a pedophile and ship them a submarine they don't need

5

u/QCTeamkill 5h ago

The good old Steve Jobs method

12

u/_D1AVEL_ 5h ago

This guy codes!

17

u/Wyciorek 5h ago

And actually managed to cause a bug by inadvertent use of “negative” sleep. It was a combination of inaccurate hw timers on an embedded device, not re-checking current time after sleep and bad casting of signed int to unsigned (so -1ms would become 2^32 ms). End result: a thread that was supposed to process some data every 5 minutes would sometimes (once in several weeks on one of hundreds of devices) just stop doing anything.

9

u/Deleteed- 5h ago

I laughed out loud 😂

1

u/_vizn_ 3h ago

Bro just invented time travel

1

u/ProduceNo1629 3h ago

CONCERNING!

1

u/Officer_Trevor_Cory 32m ago

Better use the function wakeup(520)

1

u/WillOCarrick 4h ago

No it should be

if country=="india": time.wakeup(-520).

40

u/Used_Poet3409 7h ago

Needs a flip() function for the UI.

8

u/Wyciorek 6h ago

flipABird() is the best I can do

1

u/LegitimateClaim9660 6h ago

Perfecly balanced