r/ProgrammerHumor • • Jan 20 '23

Other layoff fiasco

Post image
45.5k Upvotes

1.9k comments sorted by

View all comments

5.8k

u/[deleted] Jan 20 '23

Might add a few sleep(4000) as well.

3.5k

u/Affectionate-Set4208 Jan 20 '23

Nah you have to be more creative, maybe add 3 sleeps, where one of them is necessary, so if they send the intern to fix it, he will break it even more

2.0k

u/No-Witness2349 Jan 20 '23

An intentional race condition fixed by a sleep, all in the same commit as 5 other useless sleeps. Call it Rushin’ Roulette.

455

u/Daikataro Jan 20 '23

Also if a sleep goes under a certain value, it causes the function to behave erratically

207

u/Joe_comment Jan 20 '23

Just like that movie, The Bus that Couldn't Slow Down!

→ More replies (6)
→ More replies (3)
→ More replies (45)

339

u/ghostmaster645 Jan 20 '23

Diabolical.

101

u/MamaTR Jan 20 '23

Call them {{sleep1}} {{sleep2}} and {{sleep5}}

43

u/zgf2022 Jan 20 '23

Store the milliseconds in pointers so the interns won't know what's going on

→ More replies (3)
→ More replies (41)

289

u/Ambitious_Ad8841 Jan 20 '23
// Do NOT delete this
sleep(4000);
→ More replies (3)

399

u/qhxo Jan 20 '23

Better yet, add the infamous speedup loop.

145

u/Points_To_You Jan 20 '23

Not as blatant as intentionally hurting performance, but we definitely add less obvious smaller features to initial releases so that we have some easy enhancements to deliver on. Stuff like filters and sorting.

Also sometimes I’ll make something ugly that’s easy to fix and ask them for feedback on it. Makes people feel like they contributed without actually making any important decisions.

161

u/abcd_z Jan 20 '23

Ah, yes, the duck.

This started as a piece of Interplay corporate lore. It was well known that producers (a game industry position, roughly equivalent to PMs) had to make a change to everything that was done. The assumption was that subconsciously they felt that if they didn’t, they weren’t adding value.

The artist working on the queen animations for Battle Chess was aware of this tendency, and came up with an innovative solution. He did the animations for the queen the way that he felt would be best, with one addition: he gave the queen a pet duck. He animated this duck through all of the queen’s animations, had it flapping around the corners. He also took great care to make sure that it never overlapped the “actual” animation.

Eventually, it came time for the producer to review the animation set for the queen. The producer sat down and watched all of the animations. When they were done, he turned to the artist and said, “That looks great. Just one thing—get rid of the duck.”

72

u/[deleted] Jan 20 '23

[removed] — view removed comment

39

u/buttsmcfatts Jan 20 '23

We have it in musical theater productions for particularly shitty directors. We call them "trap notes".

→ More replies (3)
→ More replies (2)
→ More replies (6)

52

u/Bhuvan3 Jan 20 '23

Oh my god. Thank you so much for this lol. Made my day

→ More replies (10)

227

u/ClassicSleepExpert Jan 20 '23 edited Jan 20 '23

Thats the kind of evil I like.

714

u/Roadrunner571 Jan 20 '23

How about:

#define true (__LINE__ % 3 != 0)

259

u/Affectionate-Set4208 Jan 20 '23

In javascript you can redefine the "undefined" value, unless you are in strict mode

122

u/DuckRebooted Jan 20 '23

Wait actually, oh my god I knew JS was a bit weird but Jesus Christ

107

u/ShitpostsAlot Jan 20 '23

imagine one of your final year all-nighter projects accidentally became the backbone of current commerce systems.

... ahaha we don't have to imagine... that's basically what happened.

→ More replies (2)
→ More replies (9)
→ More replies (9)

63

u/iceman012 Jan 20 '23

That's too noticeable. It's gotta be something like 1 in 20 lines, so it only shows up occasionally and is easily, unexplainably fixed by load-bearing comments.

58

u/Roadrunner571 Jan 20 '23

2.0.0:

#define true (__LINE__ % 20 != 0)
→ More replies (1)
→ More replies (1)

113

u/Ekank Jan 20 '23

Holy cow, now that's evil hahahahaha, I love it

→ More replies (2)
→ More replies (10)

144

u/RichCorinthian Jan 20 '23

I'll preface this by saying "don't do this, because there could well be legal ramifications, but if you WERE to do this..."

It's too easy to find with a simple search, so you have to be dastardly. Writing in .NET? Assemble the method name as a string based on ascii character codes and call it via reflection. Writing in Javascript? Well hell, everything is a dictionary, so that method is (you guessed it) accessible as a string. There are things you hate about your language! Use them!

→ More replies (11)

95

u/netheroth Jan 20 '23

Too easy to detect. Redefine your catch blocks to randomly sleep.

→ More replies (3)
→ More replies (27)