topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 7:01 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Comments That Make You Smile :)  (Read 13927 times)

Renegade

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,288
  • Tell me something you don't know...
    • View Profile
    • Renegade Minds
    • Donate to Member
Comments That Make You Smile :)
« on: January 14, 2008, 06:10 PM »
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
  • ***
  • Points: 1
  • Posts: 9,747
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Comments That Make You Smile :)
« Reply #1 on: January 14, 2008, 07:14 PM »
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

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

Renegade

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,288
  • Tell me something you don't know...
    • View Profile
    • Renegade Minds
    • Donate to Member
Re: Comments That Make You Smile :)
« Reply #3 on: January 14, 2008, 11:38 PM »
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

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,288
  • Tell me something you don't know...
    • View Profile
    • Renegade Minds
    • Donate to Member
Re: Comments That Make You Smile :)
« Reply #4 on: January 14, 2008, 11:39 PM »
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

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,288
  • Tell me something you don't know...
    • View Profile
    • Renegade Minds
    • Donate to Member
Re: Comments That Make You Smile :)
« Reply #5 on: January 14, 2008, 11:41 PM »
And those licensing agreement comments:

NSFW
Code: C++ [Select]
  1. /* This program is free software. It comes without any warranty, to
  2.  * the extent permitted by applicable law. You can redistribute it
  3.  * and/or modify it under the terms of the Do What The Fuck You Want
  4.  * To Public License, Version 2, as published by Sam Hocevar. See
  5.  * 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 14, 2008, 11:43 PM by Renegade »

Renegade

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,288
  • Tell me something you don't know...
    • View Profile
    • Renegade Minds
    • Donate to Member
Re: Comments That Make You Smile :)
« Reply #6 on: January 15, 2008, 12:07 AM »
Having problems are we?

NSFW
Code: C++ [Select]
  1. /* FIXME FIXME FIXME FUCK SOMEONE FIXME*/


Foreign languages got you down?

NSFW
Code: C++ [Select]
  1. #define _GTK_EXTERNAL_WINDOW_HANDLER_H_
  2. /*
  3.  *  I FUCK WANT SOME FUCK THING TO HANDLE FUCKING EVENTS ON FUCKING FOREIGN WINDOWS ! FUCK !!!
  4.  */


This one rocks!

NSFW
Code: C++ [Select]
  1. #include <linux/config.h>
  2. #include <asm/pgalloc.h>
  3. /* Fuck.  The f-word is here so you can grep for it :-)  */
  4. extern unsigned long asid_cache;
  5. 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,884
    • View Profile
    • Donate to Member
Re: Comments That Make You Smile :)
« Reply #7 on: January 15, 2008, 12: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 [Select]
  1. procedure TForm1.AppException(Sender: TObject; E: Exception);
  2. begin
  3.  application.messagebox('BugMX produced an error'#13'Just restart...Bug will fix it :-p','Shit happened',mb_IconError);
  4. 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: 632
    • View Profile
    • Donate to Member
Re: Comments That Make You Smile :)
« Reply #8 on: February 09, 2008, 09:49 PM »
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
    • View Profile
    • Donate to Member
Re: Comments That Make You Smile :)
« Reply #9 on: February 09, 2008, 11:43 PM »
A few I don't remember making, but must have. . . a quick grep has left me mildly amused.

# It's over!
// I should idiot proof this. I'm not sure I'm qualified.
// I'll forget about this anyway.
// I'm one lazy bastard.
# 'I'm sorry'" => "I'm thinking . . . fuck you, asshole"
// 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

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 13,288
  • Tell me something you don't know...
    • View Profile
    • Renegade Minds
    • Donate to Member
Re: Comments That Make You Smile :)
« Reply #10 on: February 10, 2008, 10:18 PM »
Code: C# [Select]
  1. // 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
    • View Profile
    • Donate to Member
Re: Comments That Make You Smile :)
« Reply #11 on: February 11, 2008, 12:24 AM »
And those licensing agreement comments:

The license is here. HILARIOUS!


 ;D