Programming Index Cards

June 2, 2009

How To Write Unmaintainable Code

Filed under: Humor — Tags: — apcig @ 1:26 pm

Obscure film references

Use constant names like LancelotsFavouriteColour instead of blue and assign it hex value of $0204FB. The color looks identical to pure blue on the screen, and a maintenance programmer would have to work out 0204FB (or use some graphic tool) to know what it looks like. Only someone intimately familiar with Monty Python and the Holy Grail would know that Lancelot’s favorite color was blue. If a maintenance programmer can’t quote entire Monty Python movies from memory, he or she has no business being a programmer.

http://freeworld.thc.org/root/phun/unmaintain.html?repost=forPosterity

Blog at WordPress.com.