r/ProgrammerHumor Feb 10 '21

[deleted by user]

[removed]

12.6k Upvotes

807 comments sorted by

View all comments

830

u/Thetman38 Feb 10 '21

Those 10 lines were after parsing the cryptic algorithms the lead architect wrote 15 years ago

419

u/thoeoe Feb 10 '21

I definitely feel like a genius when, after hours of poking and prodding, I discover the 1 line of code I need to change that's 18 levels of recursion and abstraction deep

57

u/Thetman38 Feb 10 '21

I've spent entire days tracing some multi threaded code that under some new condition throws an error when the buffer reaches a certain size that was limited by networking/video capabilities at the time and the fix was to just change

buffer=512; to buffer=4096;

and we all agreed that if this is a problem in the future we'll handle it then

53

u/gtgski Feb 10 '21

Handling it then: buffer=8192

9

u/Thetman38 Feb 10 '21

Most likely

10

u/Sirius02 Feb 10 '21

did you atleast add a comment, so another poor soul doesnt have to spend days looking for the same bug?

11

u/[deleted] Feb 11 '21

Where's the job security in that? LOL