![]() |
how to write unmaintainable code (funny)
http://thc.segfault.net/root/phun/unmaintain.html pretty funny article, if you know how to program. discuss.
|
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.
|
dude, whoever wrote that has too much spare time
|
hehehe...that's pretty cool
|
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 |
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