Welcome to Dream.In.Code
Getting Help is Easy!

Join 86,243 Programmers. There are 2,243 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a Expert
Powered by LivePerson.com

Register to Make This Box Go Away!

Funny Code Comments

3 Pages V  1 2 3 >  
Reply to this topicStart new topic

Funny Code Comments

skyhawk133
post 15 Apr, 2008 - 08:25 AM
Post #1


Big Money... No Wammies!

Group Icon
Joined: 17 Mar, 2001
Posts: 13,547



Found this in one of the applications I manage at work:


CODE

*********************
The two most important things to remember about this application:
    1. It is quite simply a big fucking IF statement (due to complex rights and restrictions)
    2. Like Scottish Cuisine it was based on a dare.
*********************



What are some funny comments, variable names, etc. that you've written or found in applications?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


Nova Dragoon
post 15 Apr, 2008 - 09:40 AM
Post #2


The Innocent Shall Suffer, Big Time

Group Icon
Joined: 16 Aug, 2001
Posts: 5,754

CODE

# jeffa says, whoever put this   here:  we hates you, we hates you forever...
#                                    |
#                                   \|/
#                                    '  
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

no2pencil
post 15 Apr, 2008 - 08:41 PM
Post #3


DIC K-mart

Group Icon
Joined: 10 May, 2007
Posts: 3,321

This is from source code that I filed with the US CopyRight office.

I forgot that I left all the comments in there:

CODE

w32fd           WIN32_FIND_DATA <>;File Time-n-Date Shit

CODE

start:
    call FileProp; weee!

CODE

                call    CreateDirectoryA; Make that shit work!

CODE

FileProp proc
;******* Time & Date Shit ******
        lea    esi,offset DLFile
        invoke FindFirstFile,esi,addr w32fd
        .if eax!=INVALID_HANDLE_VALUE
        invoke FindClose,eax

CODE

@msg_Is_NT:
    push    offset HostsRegLocationnt;mov FileHandle_R1, offset DLFile
    push    offset DLFile        ;mov FileHandle_W, HostsRegLocationnt
                        ;push    FileHandle_W
    call    CopyFile                 ;push    FileHandle_R1
  ;-======================-
  ;    Uh oh, File I/O!
  ;-======================-
    push     00000000h
    push     FILE_ATTRIBUTE_NORMAL
    push    OPEN_EXISTING;OPEN_ALWAYS
    push     00000000h
    push     FILE_SHARE_READ;00000000h
    push    GENERIC_READ
    push    offset CusFile
    call     CreateFile
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

jorvis
post 15 Apr, 2008 - 10:22 PM
Post #4


New D.I.C Head

*
Joined: 4 Apr, 2008
Posts: 11

It's not a comment, but someone recently passed this on to me... Apparently the source code for Vista has finally been leaked biggrin.gif

http://i29.tinypic.com/10gidzr.jpg
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

KYA
post 15 Apr, 2008 - 11:14 PM
Post #5


DIC DIC DIC DIC DIC DIC DIC DIC DIC DIC DIC DIC DIC DIC DIC DIC

Group Icon
Joined: 14 Sep, 2007
Posts: 1,318

QUOTE(jorvis @ 15 Apr, 2008 - 11:22 PM) *

It's not a comment, but someone recently passed this on to me... Apparently the source code for Vista has finally been leaked biggrin.gif

http://i29.tinypic.com/10gidzr.jpg



Awesome icon_up.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

BenignDesign
post 16 Apr, 2008 - 05:51 AM
Post #6


D.I.C Regular

Group Icon
Joined: 28 Sep, 2007
Posts: 484

Found these while digging through source code for Simple Machines Forums:

CODE


//You banned, sucka!

//If they get this far, we're screwed!  (but that should never happen)

User is online!Profile CardPM
Go to the top of the page
+Quote Post

Eighty
post 16 Apr, 2008 - 06:12 AM
Post #7


New D.I.C Head

*
Joined: 16 Apr, 2008
Posts: 19

This is a little pascal humor I used back in the dark ages:

CODE

VAR
  hellfreezesover:boolean;
  fruitloop:integer;

BEGIN
  fruitloop:=0;
  hellfreezesover:=FALSE;
  repeat
   fruitloop:=fruitloop+1;
   if (fruitloop=666) then hellfreezesover:=TRUE;
  until hellfreezesover;
END.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

KYA
post 16 Apr, 2008 - 06:55 AM
Post #8


DIC DIC DIC DIC DIC DIC DIC DIC DIC DIC DIC DIC DIC DIC DIC DIC

Group Icon
Joined: 14 Sep, 2007
Posts: 1,318

java


/*
* I know this isn't a very efficient algorithm, but I ran out of time. Also,
I enjoy reinventing the wheel. So there!
*/
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

spearfish
post 16 Apr, 2008 - 10:25 AM
Post #9


Monkey in Training

Group Icon
Joined: 10 Mar, 2008
Posts: 670

I should start writing my own funny comments..... then I can pretend I stumbled upon them smile.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

yanom
post 16 Apr, 2008 - 02:27 PM
Post #10


New D.I.C Head

*
Joined: 5 Apr, 2008
Posts: 23

That "Vista Source Code" is pretty funny.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Tom9729
post 16 Apr, 2008 - 02:57 PM
Post #11


D.I.C Addict

Group Icon
Joined: 30 Dec, 2007
Posts: 574

QUOTE
// the fucking alpha cpp compiler seems to fuck up the goddam type "LPITEMIDLIST", so to work
// around the fucking peice of shit compiler we pass the last param as an void *instead of a LPITEMIDLIST


QUOTE
// The specific idiot in this case is Office95, which likes
// to free a random pointer when you start Word95 from a desktop
// shortcut.


QUOTE
* for idiots like MS-Access 2.0 who SetWindowPos( SWP_BOZO
* and blow away themselves on the shell, then lets
* just ignore their plea to be removed from the tray


http://www.kuro5hin.org/story/2004/2/15/71552/7795 - Source, Windows 2k source code
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

JasonMcAuley
post 16 Apr, 2008 - 09:12 PM
Post #12


D.I.C Head

**
Joined: 10 Apr, 2008
Posts: 122

Haha some of these are great! I wish I had funny comments to show sad.gif

This does kind of inspire me to put funny comments in my code from now on for co-workers to find if they ever have to go through my code.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

3 Pages V  1 2 3 >
Fast ReplyReply to this topicStart new topic
Time is now: 5/16/08 08:25AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month