GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   how to write unmaintainable code (funny) (https://gfy.com/showthread.php?t=647599)

k0nr4d 08-23-2006 11:39 AM

how to write unmaintainable code (funny)
 
http://thc.segfault.net/root/phun/unmaintain.html pretty funny article, if you know how to program. discuss.

High Plains Drifter 08-23-2006 12:29 PM

haha nice list... I've seen many of those techniques used over the years. The easiest and most devestating in my experience is using single-letter variable names.

Radiate 08-23-2006 12:46 PM

dude, whoever wrote that has too much spare time

LittleSassy 08-23-2006 01:17 PM

hehehe...that's pretty cool

woj 08-23-2006 01:17 PM

love this one:

Reverse the usual definitions of true and false. Sounds very obvious but it works great. You can hide:

#define TRUE 0
#define FALSE 1

somewhere deep in the code so that it is dredged up from the bowels of the program from some file that noone ever looks at anymore. Then force the program to do comparisons like:

if ( var hahahaha TRUE )

if ( var != FALSE )


:1orglaugh

k0nr4d 08-23-2006 01:29 PM

my favorite was this:
marypoppins = (superman + starship) / god;

I was working on this healthcare job site this one time, the guy had the most fucked variables.
$ab,$as,$aq,$rq,$rs,$rb,$ra

I did what I could and added some comments to his code...
such as

/* Abandon hope, all ye who enter here */


All times are GMT -7. The time now is 11:23 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123