Inspired by the thread Software developers of Reddit, what is the most shameful "fuck it, it works" piece of code you've ever written?, I wanted to ask what horrible/funny comments you have in your code.
In my main code base, 1000 lines in to a 2.5k line file, sits this beauty:
//================YOU ARE ENTERING HELL ON EARTH=======================
//======================THE PAIN STARTS HERE===========================
I tried to refactor it once or twice, but I think I just got myself more jumbled as a result.
What signposts lie in the dark tunnels of your code to guide any unfortunate souls who had to venture that deep?
Oldest comments (15)
I really loved this one, although its not from my project, rather from online :p
Exception up = new Exception("Something is really wrong.");
throw up; //ha ha
which translates more or less to
//plz come back and clean this up
Somebody added two comments to code written by another team member:
On a file that hasn't been touched in 3+ years. It's not very artistic or dramatic, but fffff....
In my big honkin WordPress plugin I built:
// USING $_GET IS $_KLUDGY_AS_FUQ
My favourite was this:
With the accompanying comment: