Funny Code Comments

  • (2 Pages)
  • +
  • 1
  • 2

24 Replies - 17129 Views - Last Post: 25 April 2008 - 11:01 PM

#1 skyhawk133  Icon User is offline

  • Head DIC Head
  • member icon

Reputation: 1865
  • View blog
  • Posts: 20,278
  • Joined: 17-March 01

Funny Code Comments

Post icon  Posted 15 April 2008 - 08:25 AM

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


*********************
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?

Is This A Good Question/Topic? 0
  • +

Replies To: Funny Code Comments

#2 Nova Dragoon  Icon User is offline

  • The Innocent Shall Suffer, Big Time
  • member icon

Reputation: 36
  • View blog
  • Posts: 6,169
  • Joined: 16-August 01

Re: Funny Code Comments

Posted 15 April 2008 - 09:40 AM

# jeffa says, whoever put this   here:  we hates you, we hates you forever...
#									|
#								   \|/
#									'  


Was This Post Helpful? 0
  • +
  • -

#3 no2pencil  Icon User is online

  • Toubabo Koomi
  • member icon

Reputation: 5182
  • View blog
  • Posts: 26,880
  • Joined: 10-May 07

Re: Funny Code Comments

Posted 15 April 2008 - 08:41 PM

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

I forgot that I left all the comments in there:

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


start:
	call FileProp; weee!


				call	CreateDirectoryA; Make that shit work!


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


@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


Was This Post Helpful? 0
  • +
  • -

#4 jorvis  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 11
  • Joined: 04-April 08

Re: Funny Code Comments

Posted 15 April 2008 - 10: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 :D

http://i29.tinypic.com/10gidzr.jpg
Was This Post Helpful? 0
  • +
  • -

#5 KYA  Icon User is online

  • g++ jameson.cpp -o beverage
  • member icon

Reputation: 3093
  • View blog
  • Posts: 19,139
  • Joined: 14-September 07

Re: Funny Code Comments

Posted 15 April 2008 - 11:14 PM

View Postjorvis, on 15 Apr, 2008 - 11:22 PM, said:

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

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



Awesome :^:
Was This Post Helpful? 0
  • +
  • -

#6 BenignDesign  Icon User is offline

  • holy shitin shishkebobs
  • member icon




Reputation: 5935
  • View blog
  • Posts: 10,346
  • Joined: 28-September 07

Re: Funny Code Comments

Posted 16 April 2008 - 05:51 AM

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


//You banned, sucka!

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



Was This Post Helpful? 0
  • +
  • -

#7 Eighty  Icon User is offline

  • New D.I.C Head
  • member icon

Reputation: 0
  • View blog
  • Posts: 20
  • Joined: 16-April 08

Re: Funny Code Comments

Posted 16 April 2008 - 06:12 AM

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

VAR
  hellfreezesover:boolean;
  fruitloop:integer;

BEGIN
  fruitloop:=0;
  hellfreezesover:=FALSE;
  repeat
   fruitloop:=fruitloop+1;
   if (fruitloop=666) then hellfreezesover:=TRUE;
  until hellfreezesover;
END.


Was This Post Helpful? 0
  • +
  • -

#8 KYA  Icon User is online

  • g++ jameson.cpp -o beverage
  • member icon

Reputation: 3093
  • View blog
  • Posts: 19,139
  • Joined: 14-September 07

Re: Funny Code Comments

Posted 16 April 2008 - 06:55 AM


/*
 * I know this isn't a very efficient algorithm, but I ran out of time. Also,
    I enjoy reinventing the wheel. So there!
*/


Was This Post Helpful? 0
  • +
  • -

#9 spearfish  Icon User is offline

  • Monkey in Training
  • member icon

Reputation: 10
  • View blog
  • Posts: 746
  • Joined: 10-March 08

Re: Funny Code Comments

Posted 16 April 2008 - 10:25 AM

I should start writing my own funny comments..... then I can pretend I stumbled upon them :)
Was This Post Helpful? 0
  • +
  • -

#10 yanom  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 70
  • Joined: 05-April 08

Re: Funny Code Comments

Posted 16 April 2008 - 02:27 PM

That "Vista Source Code" is pretty funny.
Was This Post Helpful? 0
  • +
  • -

#11 Tom9729  Icon User is offline

  • Segmentation fault
  • member icon

Reputation: 180
  • View blog
  • Posts: 2,641
  • Joined: 30-December 07

Re: Funny Code Comments

Posted 16 April 2008 - 02:57 PM

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....2/15/71552/7795 - Source, Windows 2k source code
Was This Post Helpful? 0
  • +
  • -

#12 JasonMcAuley  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 144
  • Joined: 10-April 08

Re: Funny Code Comments

Posted 16 April 2008 - 09:12 PM

Haha some of these are great! I wish I had funny comments to show :(

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.
Was This Post Helpful? 0
  • +
  • -

#13 manzoor  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 13
  • View blog
  • Posts: 468
  • Joined: 07-August 07

Re: Funny Code Comments

Posted 17 April 2008 - 07:03 AM

LoL

funny vista code
Was This Post Helpful? 0
  • +
  • -

#14 yanom  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 70
  • Joined: 05-April 08

Re: Funny Code Comments

Posted 18 April 2008 - 02:20 PM

Seriously, stop cursing. At least use f*** or at a bare miniumium f*ck. I can't stand it when people curse.
Was This Post Helpful? 0
  • +
  • -

#15 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1638
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Funny Code Comments

Posted 18 April 2008 - 02:25 PM

Well that going to be a hard request to fulfill, you see 99% of us are adults here, and sometimes we just like to use the word "fuck", it just feels good
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2