Stories
Slash Boxes
Comments

SoylentNews is people

SoylentNews is powered by your submissions, so send in your scoop. Only 15 submissions in the queue.

Submission Preview

Link to Story

What's the worst/funniest code you ever wrote?

Accepted submission by Subsentient at 2014-05-10 10:58:58
Answers
I was digging through the piles of garbage in my server today and found a rather large program I had written when I barely knew C. It was so bad, it naively reimplemented strlen(), had mixed and inconsistent case for identifiers, and it had a comment next to a const char *const saying /*constant pointers*/, to name a few. It was so bad, I wasn't sure whether to laugh or vomit, or perhaps both at the same time.

So, I ask you, what is the worst code you ever wrote? Were you a noob? Were you exhausted? I'm interested to see what soylenters have buried deep, deep in their drives.

Original Submission