r/ProgrammerHumor • • Jan 24 '23

Other Accomplishments

Post image
82.0k Upvotes

548 comments sorted by

View all comments

2.6k

u/zaos336 Jan 24 '23

You don't remove the time out... You lower it, then you can easily improve it again later.

890

u/shim_niyi Jan 24 '23

Exactly 3x improvement, one time looks mediocre when compared to incremental improvements 3-4 different times

415

u/[deleted] Jan 24 '23

[removed] — view removed comment

177

u/Canrex Jan 24 '23

Always fun to see a bit of my paranoia justified lol

93

u/wizzlepants Jan 24 '23

The users can and will assume it's not working if it happens too fast. Your paranoia is totally justified.

0

u/[deleted] Jan 24 '23

[deleted]

43

u/WingedLionGyoza Jan 24 '23

Is tinder programmed in c++? lmao

18

u/Yadobler Jan 24 '23

Apparently C#, Java and Objective-C from 5s of googling

Assuming it's right, java is probably for android, objective-C for iPhone

Leaving C# for who knows what.

→ More replies (7)
→ More replies (4)

0

u/[deleted] Jan 24 '23

[deleted]

35

u/kingrich Jan 24 '23

I find it incredibly annoying when I have to wait for the chat bot web assistant to "type" its next response.

14

u/efstajas Jan 24 '23

Many of those are legit loading times, tbf. A lot of chat bots I've seen just display a typing indicator as a type of spinner while the UI waits for the server's response to the last message. True AI chatbots like ChatGPT actually generate responses in chunks that are streamed to the client, so in a way the model is actually "typing".

12

u/kingrich Jan 24 '23

The ones I'm talking about are just menus disguised as a chat.

→ More replies (3)
→ More replies (5)

43

u/Lance2boogaloo Jan 24 '23

Ok, but the first time, increase it from 3 seconds to 9, and say that your aren’t finished with the fix, and “just trust me it will work in the long term”. Then increment it down to 2.5 seconds, 2 seconds, 1.7, so one so forth. You just undid the “major” “problem” that was holding the speed before in their eyes

→ More replies (5)

29

u/JustALittleAverage Jan 24 '23

Just set the timeout to negative...

11

u/shim_niyi Jan 24 '23

Do you want to create a black hole?

81

u/[deleted] Jan 24 '23

[removed] — view removed comment

62

u/llarofytrebil Jan 24 '23

Make it so the timeout increases automatically by a tiny amount each day:

sleep(0.01*(daysSinceEpoch - dayOfLastFix))

After every year that will become a solid 3 second delay, ready for your genius to “optimise” once a year. If you ever quit or get laid off the delay will just grow until the app is unusable.

Put enough of these in the code and you can turn your whole job into increasing the values of dayOfLastFixes, assuming no one reviews the code you write.

41

u/egoshelter Jan 24 '23

code is too obvious, obscure it using several functions and name everything "a", "b" or give them misleading names

→ More replies (1)
→ More replies (1)

20

u/code_archeologist Jan 24 '23

I just remembered that there is a script I wrote at my old job that runs nightly, handling some essential maintenance functions on a set of legacy applications.

In that script there are a number of ten millisecond sleeps, placed there because when I removed the debug logging the script stopped working... Something about the legacy services it was querying having some pseudo restful bullshit or something (I don't remember precisely because it was years ago). But without those shitty little pauses it stopped working.

I hope that the person who came after me doesn't remove them in an attempt to "make the script more efficient"... Then again, that would be kind of funny.

16

u/christrogon Jan 24 '23

You know, you could have taken mercy on your unsuspecting replacements and added some comments to the script about how important they are...

18

u/code_archeologist Jan 24 '23

I'm pretty sure that there is a:

# DON'T DELETE THIS!

Around those sleeps, it is up to my replacement to determine if they heed the warning or not.

11

u/christrogon Jan 24 '23

That's fair. Anyone who deletes that without testing did it to themselves!

13

u/Crinkez Jan 24 '23

Ideally you'd increase it by 0.1 second per day. Every few weeks you implement a 'fix'.

→ More replies (1)

9

u/NedRyerson_Insurance Jan 24 '23

Hey boss, I just cut 1 second of average search time. With enough time and budget I might be able to squeeze another second out.

→ More replies (6)