Funniest comments in code
- Ron2K
- Forum Technical Administrator
- Posts: 9050
- Joined: 04 Jul 2006, 16:45
- Location: Upper Hutt, New Zealand
- Contact:
Funniest comments in code
Kia kaha, Kia māia, Kia manawanui.
Re: Funniest comments in code
Tribble wrote:
+1^!10000000
Dual Core E2140@1.6GHz, 2 Gig Ram, 500 Gig Samsung HD, 80 Gig Maxtor, Geforce 7300se
Thanx Ama
Re: Funniest comments in code
We have old legacy programs that are still in use. Sometimes we get the awesome job to do some maintenance work on these old programs.
Bloody code? The zombies were here?
Touchy mad code?!
Bloody code? The zombies were here?
Touchy mad code?!
а плечьми буйство струйка. Дверь Твоем юдоли. Виновником неразлучен страшиться невинность милосердье сладчайший. Век под вне Оно Нет сия тук. Все вас совоздыхая устремится ком мню возблеснув разверзают лик мой сопрягаешь. Неправды но Ту светлеет Неправых Ни ум смотреть.
- rustypup
- Registered User
- Posts: 8872
- Joined: 13 Dec 2004, 02:00
- Location: nullus pixius demonica
- Contact:
Re: Funniest comments in code
if ever there was a language worthy of an endless list of expletives, it would be VB... actually VBA then VB...
Most people would sooner die than think; in fact, they do so - Bertrand Russel
- Tribble
- Registered User
- Posts: 88465
- Joined: 08 Feb 2007, 02:00
- Processor: Intel Core i7-4770K CPU@3.50GHz
- Motherboard: ACPI x64-based PC
- Graphics card: GeForce GTX 780 Ti
- Memory: 16GB
- Location: Not here
- Contact:
Re: Funniest comments in code
I would agree there - not a language that comes easily. Luckily expletives do.
Re: Funniest comments in code
It puts the food on the table, so I am not complaining.rustypup wrote:if ever there was a language worthy of an endless list of expletives, it would be VB... actually VBA then VB...
а плечьми буйство струйка. Дверь Твоем юдоли. Виновником неразлучен страшиться невинность милосердье сладчайший. Век под вне Оно Нет сия тук. Все вас совоздыхая устремится ком мню возблеснув разверзают лик мой сопрягаешь. Неправды но Ту светлеет Неправых Ни ум смотреть.
- Ron2K
- Forum Technical Administrator
- Posts: 9050
- Joined: 04 Jul 2006, 16:45
- Location: Upper Hutt, New Zealand
- Contact:
What are the best code comments you've encountered?
Inspired by a chat with RRF in the Spam Thread, as well as some gems I've found in my time, I thought I'd start this thread.
Found two gems in one of our stored procs:
And at the end of said siff SQL:
Found two gems in one of our stored procs:
Code: Select all
/*
* (WARNING: very long and very siff SQL about to follow!)
*/
And at the end of said siff SQL:
Code: Select all
-- that's over. thank the deity you believe in.
Kia kaha, Kia māia, Kia manawanui.
Re: What are the best code comments you've encountered?
Actually, nvm. Threads merged.
Re: Funniest comments in code
I was submitted a half written program in c#, done with the aid of drag and drop controls and functions by a complete chop. So after 3 or 4 people had tried to fix it, I got the job and found this at the imports sections of one of the classes.
'Code is haunted don't bother.
try changing databases from Access to SQL Compact 3.5, and that's what you'd get
'Code is haunted don't bother.
try changing databases from Access to SQL Compact 3.5, and that's what you'd get
- Ron2K
- Forum Technical Administrator
- Posts: 9050
- Joined: 04 Jul 2006, 16:45
- Location: Upper Hutt, New Zealand
- Contact:
Re: Funniest comments in code
I added one of my own yesterday. It was discovered by someone else today, much to the great mirth of all.
Code: Select all
#region Enums (enom-nom-noms?)
Kia kaha, Kia māia, Kia manawanui.
-
- Registered User
- Posts: 14085
- Joined: 06 Oct 2004, 02:00
- Location: Location, Location...
- Contact:
Re: Funniest comments in code
Not strictly a comment, but I just came across this in one of our stored procedures
- Spoiler: (show)
- rustypup
- Registered User
- Posts: 8872
- Joined: 13 Dec 2004, 02:00
- Location: nullus pixius demonica
- Contact:
Re: Funniest comments in code
mere words cannot describe how much i would love to shoot the people who drop this sort of crud into procs...SELECT * FROM [tablename]
Most people would sooner die than think; in fact, they do so - Bertrand Russel
-
- Registered User
- Posts: 20576
- Joined: 19 Sep 2003, 02:00
- Location: Bloodbank
Re: Funniest comments in code
rusty I am with you there. That is truly dangerous code. Could end the world with that single statement.
- Spoiler (show)
- Ron2K
- Forum Technical Administrator
- Posts: 9050
- Joined: 04 Jul 2006, 16:45
- Location: Upper Hutt, New Zealand
- Contact:
Re: Funniest comments in code
I left this above a particularly nasty piece of code that I wrote earlier this week:
Code: Select all
// here begins the Dark Magic - a ritual of Pain and Suffering to appease the Evil Gods (aka the Marketing Department).
Kia kaha, Kia māia, Kia manawanui.
-
- Registered User
- Posts: 14085
- Joined: 06 Oct 2004, 02:00
- Location: Location, Location...
- Contact:
Re: Funniest comments in code
@ rusty and RRF, I replaced the column names with a * in the interest of saving my own behind- same as I replaced the actual table name with [tablename]
-
- Registered User
- Posts: 4099
- Joined: 03 Jan 2007, 02:00
- Contact:
Re: Funniest comments in code
/**
* For the brave souls who get this far: You are the chosen ones,
* the valiant knights of programming who toil away, without rest,
* fixing our most awful code. To you, true saviors, kings of men,
...* I say this: never gonna give you up, never gonna let you down,
* never gonna run around and desert you. Never gonna make you cry,
* never gonna say goodbye. Never gonna tell a lie and hurt you.
*/
Hapy happy happy
Back in NL...
Back in NL...
-
- Registered User
- Posts: 2663
- Joined: 29 Jul 2004, 02:00
- Location: hidden deep in the depths of the underworld is my home.
- Contact:
Re: Funniest comments in code
AHHH.. i just rick rolled.
- Ron2K
- Forum Technical Administrator
- Posts: 9050
- Joined: 04 Jul 2006, 16:45
- Location: Upper Hutt, New Zealand
- Contact:
Re: Funniest comments in code
Ooh, look what I just found in our code base:
Code: Select all
// VEGETA, WHAT DOES THE SCOUTER SAY ABOUT HIS POWER LEVEL
updatedataparams.Add(Param.Create("{param-name-removed}", 9001));
Kia kaha, Kia māia, Kia manawanui.
-
- Registered User
- Posts: 20576
- Joined: 19 Sep 2003, 02:00
- Location: Bloodbank
- Ron2K
- Forum Technical Administrator
- Posts: 9050
- Joined: 04 Jul 2006, 16:45
- Location: Upper Hutt, New Zealand
- Contact:
Re: Funniest comments in code
And, it appears I'm not the only World of Warcraft addict in the department. This comment found just below a "sanity check":
Code: Select all
// your sanity has reached zero. your mind is now permanently under the control of Yogg-Saron.
// (http://www.wowhead.com/spell=63050 for those of you who don't play world of warcraft, or who
// don't get the obvious reference that blizzard made to the cthulhu mythos.)
Kia kaha, Kia māia, Kia manawanui.
-
- Registered User
- Posts: 20576
- Joined: 19 Sep 2003, 02:00
- Location: Bloodbank
- Ron2K
- Forum Technical Administrator
- Posts: 9050
- Joined: 04 Jul 2006, 16:45
- Location: Upper Hutt, New Zealand
- Contact:
Re: Funniest comments in code
I seem to be on a roll today.
(Profanity edited out, but it was present in the original comment!)
Code: Select all
// Here is where the ****ing dragon resides...
// _/|__
// _,-------, _/ -| \_ /~>.
// _-~ __--~~/\ | ( \ / ) | / |
// _-~__-- // \\ \ * * / / | ||
// _-~_-- // || \ / | / /|
// ~ ~~~~-_ // \\ |( " )| / | || /
// \ // || | VWV | | / ///
// |\ | // \\ _/ |/ | ./ |
// | | |// __ _-~ \// | /
// / / //_-~ ~~--_ _-~ / |\// /
// | | /-~ _-~ ( / |/ / /
// / / _-~ __ | |____|/
// | |__ / _-~ ~-_ (_______ `\
// | ~~--__--~ / _ \ __\)))
// \ _-~ | ./ \
// ~~--__ / / _/ |
// ~~--___/ _-_____/ /
// _____/ _-_____/ _-~
// /^< ___ -____ -____
// ~~ ~~--__ ``\--__ ``\
// ~~--\)\)\) ~~--\)\)\)
Kia kaha, Kia māia, Kia manawanui.
-
- Registered User
- Posts: 14085
- Joined: 06 Oct 2004, 02:00
- Location: Location, Location...
- Contact:
Re: Funniest comments in code
Found this while debugging:
Code: Select all
/*
_.--""--._
/ _ _ \
_ ( (_\ /_) ) _
{ \._\ /\ /_./ }
/_"=-.}______{.-="_\
_ _.=("""")=._ _
(_'"_.-"`~~`"-._"'_)
{_" "_}
Abandon all hope, ye who enters here.
*/
- Tribble
- Registered User
- Posts: 88465
- Joined: 08 Feb 2007, 02:00
- Processor: Intel Core i7-4770K CPU@3.50GHz
- Motherboard: ACPI x64-based PC
- Graphics card: GeForce GTX 780 Ti
- Memory: 16GB
- Location: Not here
- Contact:
Re: Funniest comments in code
Oooh I have to do that today. C# is no longer such a mystery