http://thc.segfault.net/root/phun/unmaintain.html pretty funny article, if you know how to program. discuss.
how to write unmaintainable code (funny)
Collapse
X
-
how to write unmaintainable code (funny)
Mechanical Bunny Media
Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web DevelopmentTags: None -
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.
-
Comment
-
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 )
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip ManagerComment
-
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 */Mechanical Bunny Media
Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web DevelopmentComment



264-580-554
Comment