-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|576|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Link Home -> Just for Fun


 
Afr0
Created : 18 May 2010
 

The Future of Product Development

It's... the future!!

https://mindprod.com/jgloss/unmain.html
I just had to post this.
Some quotes;

#
Monty Python Comments
: On a method called makeSnafucated insert only the Javadoc /* make snafucated */. Never define what snafucated means anywhere. Only a fool does not already know, with complete certainty, what snafucated means. For classic examples of this technique, consult the Sun AWT Javadoc.


Code Names Must Not Match Screen Names
: Choose your variable names to have absolutely no relation to the labels used when such variables are displayed on the screen, e. g. on the screen label the field "Postal Code" but in the code call the associated variable "zip".


Red Herrings
Pepper your code with variables that are never used and methods that are never called. This is most easily done by failing to remove code that is no longer used. You can save the code on grounds someday it may need to be revived. You get bonus points if these drone variables and methods have names similar to actual worker ones. The maintenance programmer will inevitably confuse the two. Changes made to drone code will happily compile, but have no effect.

 

Comments


Tuesday, 18 May 2010, 08:06
Afr0
#
Ensuring It Only Works In Debug Mode
: If you’ve defined TESTING as 1

this gives you the wonderful opportunity to have separate code sections, such as

which can contain such indispensable tidbits as

so that if anyone resets TESTING to 0, the program won’t work. And with the tiniest bit of imaginative work, it will not only befuddle the logic, but confound the compiler as well.

Tuesday, 18 May 2010, 08:08
Jayenkai
Negative Flags
Instead of creating "DoThis" variables, create "DontDoThis" variables, so that all your flags are 0 for True and 1 for False
Tuesday, 18 May 2010, 08:23
JL235
I remember this, there is a full unbroken version here.
Tuesday, 18 May 2010, 17:43
CodersRule
This isn't an exact quote, but I love the part under 'comments' where it says to do this:



None of the pieces of code



are rendered because they are inside a block comment.
Tuesday, 18 May 2010, 17:44
JL235
It is an AWESOME essay! Apparently some people thought it was serious.