![]() | Ned Batchelder : Blog | Code | Text | Site Abject-oriented programming » Home : Blog : July 2007 |
Abject-oriented programmingSunday 8 July 2007 Greg Jorgensen shows how not to do it: Introduction to Abject-Oriented Programming:
His tone is perfect, explaining ludicrous techniques under well-known names, enough so that many commenters took the whole thing seriously.
tagged:
funny,
development» 1 reaction | |
Comments
Thanks for the laugh, but reader beware.
Comment #12 from Niel made me snarf the milk I was drinking.
All local variables should be named starting with the prefix �tmp� followed by an index. This makes sense because local variables will disapear once the method scope is exited, hence they are temporary. Allow for 3 digit indexes beacuse a method with more than 999 variables obviously requires a better naming scheme. For example �tmp001A�, �tmp001B� is much clearer.
Also, the only type is String. This makes sense because everything can be represented as a string.
Add a comment: