THE BORE

General => The Superdeep Borehole => Topic started by: recursivelyenumerable on January 19, 2009, 11:19:45 PM

Title: hell is other people's code
Post by: recursivelyenumerable on January 19, 2009, 11:19:45 PM
they have sent me hunting for a bug in the deepest darkest corners of our company's product aka the parts I had nothing to do with

i can superficially fix the bug but still only have a vague idea what else might or might not break as a side effect of any change i make, and of course there weren't any unit tests or anything, so this has been going on for weeks now

functions should not be 300 lines long and have seven undocumented parameters :maf
Title: Re: hell is other people's code
Post by: Diunx on January 19, 2009, 11:22:59 PM
This is the worts thread I have ever seen on the internet.
Title: Re: hell is other people's code
Post by: recursivelyenumerable on January 19, 2009, 11:25:08 PM
hell is other people's forum posts, too
Title: Re: hell is other people's code
Post by: T234 on January 19, 2009, 11:32:07 PM
Sounds like you're in the same spot I am, only you have some idea of what you are doing. Most of the code I'm working with is commented, but in German.
Title: Re: hell is other people's code
Post by: Bocsius on January 19, 2009, 11:44:08 PM
Preach on, brother.
Title: Re: hell is other people's code
Post by: recursivelyenumerable on January 20, 2009, 12:16:22 AM
heh, a Google search for my subject line which I thought was clever yielded hundreds of matches
Title: Re: hell is other people's code
Post by: Madrun Badrun on January 20, 2009, 01:13:02 AM
You should do a search and replace that removes all comment delimiters from the code without removing the comment text itself.

that sounds scary.
Title: Re: hell is other people's code
Post by: Bocsius on January 20, 2009, 08:49:37 AM
heh, a Google search for my subject line which I thought was clever yielded hundreds of matches

It's a universal truth that other people's code sucks.
Title: Re: hell is other people's code
Post by: Tauntaun on January 20, 2009, 03:55:28 PM
Sounds like you're in the same spot I am, only you have some idea of what you are doing. Most of the code I'm working with is commented, but in German.
send it to me. i will translate it for you

spoiler (click to show/hide)
and add some sexyness to it :-*
[close]

"Would you like more penis?"

yes/no

:hump
Title: Re: hell is other people's code
Post by: Reb on January 20, 2009, 05:49:08 PM
if yes: hump
if no: goto yes
Title: Re: hell is other people's code
Post by: Bocsius on January 21, 2009, 03:16:41 PM
Speaking of other people's code sucking, I'm now having to add some new functionality to a project I did a year ago. I'm finding the year ago version of me sucks at programming. It's all  I can do to keep from rewriting everything.