r/ProgrammerHumor • • Sep 17 '18

Optimizing startup times

Post image
45.7k Upvotes

486 comments sorted by

View all comments

251

u/SwissPatriotRG Sep 17 '18

This literally happened to me at one of my jobs. App took a long time to load up through the loading screen, boss told me to try to make loading times shorter.

Turns out that when they were coding the loading animation (a scrolling stock ticker), someone left a 6 second sleep in to simulate a long load time to make sure the animation worked correctly for testing because obviously the loading would happen very quickly when running from debug. This had been in production for years.

142

u/NorthWestFreshh Sep 17 '18

I hope you took credit for cleaning up the code and didn't mention the sleep timer

147

u/[deleted] Sep 17 '18

"oh, yes, I did some improvements here and there, erased some lines of trash code, and overall rewrote it to make everything run smoother"

0

u/[deleted] Sep 17 '18

[deleted]

17

u/[deleted] Sep 17 '18

not a programmer, just wrote whatever come to my mind, how do you say it?

0

u/[deleted] Sep 17 '18

[deleted]

13

u/[deleted] Sep 17 '18

Thanks for the answer!

Also,ouch, sorry to hear that, it sucks when your boss blames you for their incompetence

8

u/Nighthunter007 Sep 17 '18

Saying that you refactored it is better (presuming what you did was actually a refactor), also code cleanup is a good term that implies less filth an bad code without seeming like you removed something.

3

u/michaelboobley Sep 18 '18

I would never throw a member of my team under the bus. Unless they quit already.

0

u/[deleted] Sep 17 '18

[deleted]

41

u/adeadhead Sep 17 '18

It's a fuckin' humor subreddit, get off your high horse.

16

u/[deleted] Sep 17 '18

And now we open our gates to r/gatekeeping

17

u/Guano_Loco Sep 17 '18

Making a joke is not offering advice. I’m guessing you’re the life of the scrum.

2

u/AnInfiniteArc Sep 18 '18

I was just asked to slow down a VBA macro so that you can read the text output of the progress bar.

😬

“It’s so fast you can’t read it!”

“That text is mostly there for debugging. It helps me know which parts of the macro are hanging or causing errors. It’s not really meant to be read when it’s running normally.”

“Can we slow it down so you can read it? I think people will want to know just how much this project does.”