The Ancient Code

Image from preview.redd.it and submitted by ashtonmv
image showing The Ancient Code

impediment on November 15th, 2018 at 14:22 UTC »

Yesterday I added a display:none tag to one of my web controls and it caused over 300 other calculations, some on other pages, to be incorrect. Sometimes I just don't understand why we do this.

Talbooth on November 15th, 2018 at 14:22 UTC »

I just added a comment

everything breaks due to a race condition in the interpreter

polopollo85 on November 15th, 2018 at 14:37 UTC »

Yesterday, I had to go into legacy code. I discover a ruby function called (changed names):

def get_list_of_obj1

but there was a weird bug. it was returning a list of obj2 related to obj1, not at all obj2.

Ok, weird. Quick grep to check how many time this is used.

4 times, including in 2 "1000lines methods"

omg.

git blame

same dude. Over 3 different commits.

oh a ticket number, maybe I can go to the archives.

Nope. It was an old ticket system that has been changed twice since. Dude doesn't work here anymore.

I'm scared.