|
Renegade
|
 |
« on: January 14, 2008, 06:10:42 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! 
|
|
|
|
|
Logged
|
|
|
|
|
Deozaan
|
 |
« Reply #1 on: January 14, 2008, 07:14:00 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. 
|
|
|
|
|
Logged
|
|
|
|
|
f0dder
|
 |
« Reply #2 on: January 14, 2008, 07:58:52 PM » |
|
A couple of snippets from my own fSekrit that tend to make me smile when I re-discover them: Formatted for C++ with the GeSHI Syntax Highlighter [ copy or print] // 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): Formatted for C++ with the GeSHI Syntax Highlighter [ copy or print] 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 };
|
|
|
|
« Last Edit: January 14, 2008, 08:01:45 PM by f0dder »
|
Logged
|
 - carpe noctem
|
|
|
|
|
Renegade
|
 |
« Reply #3 on: January 14, 2008, 11:38:27 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! 
|
|
|
|
|
Logged
|
|
|
|
|
Renegade
|
 |
« Reply #4 on: January 14, 2008, 11:39:38 PM » |
|
Oh! Oh! Oh! This one is funny: peer = Peer(switch) cb = CallBack() peer.send("fuck you, asshole.", cb) switch.wait_for_responses()
The irony is killer!
|
|
|
|
|
Logged
|
|
|
|
|
Renegade
|
 |
« Reply #5 on: January 14, 2008, 11:41:19 PM » |
|
And those licensing agreement comments: Formatted for C++ with the GeSHI Syntax Highlighter [ copy or print] /* 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!
|
|
|
|
« Last Edit: January 14, 2008, 11:43:43 PM by Renegade »
|
Logged
|
|
|
|
|
Renegade
|
 |
« Reply #6 on: January 15, 2008, 12:07:56 AM » |
|
Having problems are we? Formatted for C++ with the GeSHI Syntax Highlighter [ copy or print] /* FIXME FIXME FIXME FUCK SOMEONE FIXME*/
Foreign languages got you down? Formatted for C++ with the GeSHI Syntax Highlighter [ copy or print] #define _GTK_EXTERNAL_WINDOW_HANDLER_H_ /* * I FUCK WANT SOME FUCK THING TO HANDLE FUCKING EVENTS ON FUCKING FOREIGN WINDOWS ! FUCK !!! */
This one rocks! Formatted for C++ with the GeSHI Syntax Highlighter [ copy or print] #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;
|
|
|
|
|
Logged
|
|
|
|
|
app103
|
 |
« Reply #7 on: January 15, 2008, 12:27:38 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. Formatted for Delphi with the GeSHI Syntax Highlighter [ copy or print] 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 :-) :-| :-(
|
|
|
|
|
Logged
|
|
|
|
|
Rover
|
 |
« Reply #8 on: February 09, 2008, 09:49:32 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.
|
|
|
|
|
Logged
|
Insert Brilliant Sig line here
|
|
|
|
allen
|
 |
« Reply #9 on: February 09, 2008, 11:43:32 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.
|
|
|
|
|
Logged
|
|
|
|
|
Renegade
|
 |
« Reply #10 on: February 10, 2008, 10:18:21 PM » |
|
Formatted for C# with the GeSHI Syntax Highlighter [ copy or print] // 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! 
|
|
|
|
|
Logged
|
|
|
|
|
Armando
|
 |
« Reply #11 on: February 11, 2008, 12:24:56 AM » |
|
And those licensing agreement comments: The license is here. HILARIOUS! 
|
|
|
|
|
Logged
|
"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
|
|
|
|