DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Comments That Make You Smile :)  (Read 17,634 times)

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Comments That Make You Smile :)
« on: January 15, 2008, 12:10 AM »
So, I'm back to cleaning up other people's messes yet again and going through source code, when I find in the source for one of the commercial modules purchased:

//the method formats... argh! see the code, it is self-explainig!

:)

Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 9,827
    • Participated in NANY Challenge Eight Times
    • Cody Award
Re: Comments That Make You Smile :)
« Reply #1 on: January 15, 2008, 01:14 AM »
Haha. When I saw the thread topic I was thinking things along the lines of:

"You look great today!"

"Did you lose weight?"

"I love your sense of humor!"

etc. :D

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Re: Comments That Make You Smile :)
« Reply #2 on: January 15, 2008, 01:58 AM »
A couple of snippets from my own fSekrit that tend to make me smile when I re-discover them:
Code: (cpp)
// used when saving... I really need a cleaner interface for this, but I also
// really need to ship version 1.0 before deadline. Sigh :P
extern unsigned g_ugly_w, g_ugly_h, g_ugly_x, g_ugly_y;
extern bool g_ugly_maximized;  // [1.2] - something needs a cleanup...
and the related (line 8):
Code: (cpp)
struct FileHeaderV1
{
	char signature[8];		// header_v1_signature
	char hash[sha256::hashbits/8];	// plaintext hash
	unsigned size;			// size of data, padded to crypt blocksize
	unsigned realsize;		// "real" size of data, unpadded
	unsigned flags;			// bitmask of FL_* constants 
	unsigned w, h;			// saved width and height... mouser wants this
};
- carpe noctem
« Last Edit: January 15, 2008, 02:01 AM by f0dder »

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: Comments That Make You Smile :)
« Reply #3 on: January 15, 2008, 05:38 AM »
Quote
mouser wants this

Hahaha~!

Y'know, programmers can have a pretty foul mouth too sometimes -- NSFW code comments 1 and 2.

It's pretty funny to see how people get flustered! :D

Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: Comments That Make You Smile :)
« Reply #4 on: January 15, 2008, 05:39 AM »
Oh! Oh! Oh! This one is funny:

NSFW
peer = Peer(switch)
cb = CallBack()
peer.send("fuck you, asshole.", cb)
switch.wait_for_responses()

The irony is killer! :D
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: Comments That Make You Smile :)
« Reply #5 on: January 15, 2008, 05:41 AM »
And those licensing agreement comments:

NSFW
Code: (cpp)
/* This program is free software. It comes without any warranty, to
 * the extent permitted by applicable law. You can redistribute it
 * and/or modify it under the terms of the Do What The Fuck You Want
 * To Public License, Version 2, as published by Sam Hocevar. See
 * http://sam.zoy.org/wtfpl/COPYING for more details. */

The license is here. HILARIOUS!
Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker
« Last Edit: January 15, 2008, 05:43 AM by Renegade »

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: Comments That Make You Smile :)
« Reply #6 on: January 15, 2008, 06:07 AM »
Having problems are we?

NSFW
Code: (cpp)
/* FIXME FIXME FIXME FUCK SOMEONE FIXME*/

Foreign languages got you down?

NSFW
Code: (cpp)
#define _GTK_EXTERNAL_WINDOW_HANDLER_H_
/*
 *  I FUCK WANT SOME FUCK THING TO HANDLE FUCKING EVENTS ON FUCKING FOREIGN WINDOWS ! FUCK !!!
 */

This one rocks!

NSFW
Code: (cpp)

#include <linux/config.h>
#include <asm/pgalloc.h>
/* Fuck.  The f-word is here so you can grep for it :-)  */
extern unsigned long asid_cache;
extern pgd_t *current_pgd;

Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

app103

  • That scary taskbar girl
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 5,888
    • Participated in NANY Challenge Six Times
    • Coding Snacks
    • Gathering Badge
    • Cody Award
    • Volunteers/Staff
Re: Comments That Make You Smile :)
« Reply #7 on: January 15, 2008, 06:27 AM »
I was given the source to an application made by my friend & Delphi mentor, BugHunter. Looking through her code is always fun. It's often loaded with odd comments, strange error messages, and easter eggs.

code for NSFW error message
Code: (delphi)
procedure TForm1.AppException(Sender: TObject; E: Exception);
begin
 application.messagebox('BugMX produced an error'#13'Just restart...Bug will fix it :-p','Shit happened',mb_IconError);
end;

And I found this comment that still I have no clue what it was supposed to mean:

//JKL :-) :-| :-(

Rover

  • Master of Smilies
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 633
    • Linux User
Re: Comments That Make You Smile :)
« Reply #8 on: February 10, 2008, 03:49 AM »
Quote
This code is released under the IDGARA License, so feel free to use, abuse, destroy or
  ignore as you see fit.  I will not be held responsible for any use you may attempt
  with this software; in fact, assume that it's broken, doesn't work and I am a putz.

  IDGARA roughly translates to: I Don't Give A Rat's Hind End, but I used a short word
  for Hind End.
Insert Brilliant Sig line here

allen

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 1,206
    • Participated in NANY Challenge Once
    • Cody Award
    • Programming School - Deluxe Bonus Medal
    • Military Service Badge - US Navy
    • Linux User
    • Writer
Re: Comments That Make You Smile :)
« Reply #9 on: February 10, 2008, 05:43 AM »
A few I don't remember making, but must have. . . a quick grep has left me mildly amused.

Quote
# It's over!
Quote
// I should idiot proof this. I'm not sure I'm qualified.
// I'll forget about this anyway.
Quote
// I'm one lazy bastard.
Quote
# 'I'm sorry'" => "I'm thinking . . . fuck you, asshole"
Quote
// Any idiot could figure out how to do this [more cleanly]
// And I really mean ANY idiot.
// I need to try this bit sober some time.

Renegade

  • Tell me something you don't know...
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,291
    • Participated in NANY Challenge Three Times
    • Furry Fandom Badge - Furry Fandom
    • Linux User
Re: Comments That Make You Smile :)
« Reply #10 on: February 11, 2008, 04:18 AM »
Quote
Code: (csharp)
// I need to try this bit sober some time.

HAHAHAHA~!

Been there! I coded a web app 1 time where I was doing massive damage control. The guy that was supposed to do it totally dropped the ball.

2 months work and:

20% of code done
0% worked

>:(

Needless to say I was more than simply angry...

I sat at home waking up in the morning then starting to code... Round 10pm I'd start drinking until I finished at around 2~4am. I got a LOT of the app done half blitzed. Strangely enough, I had no problems with bugs. (I coded very conservatively to save time.)

Beer -- One of the great fuels of the Internet! :beerchug:

Slow Down Music - Where I commit thought crimes...

Freedom is the right to be wrong, not the right to do wrong. - John Diefenbaker

Armando

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,727
    • Coding Snacks
Re: Comments That Make You Smile :)
« Reply #11 on: February 11, 2008, 06:24 AM »
And those licensing agreement comments:

The license is here. HILARIOUS!

;D
"I suppose it can be said that I'm an absent-minded driver. It's true that I've driven through a number of red lights on occasion, but on the other hand, I've stopped at a lot of green ones but never gotten credit for it."
Glenn Gould

Original address: https://www.donationcoder.com/forum/index.php?topic=11834.0