fullduplex.org » How to Shoot Yourself in the Foot in Any Programming Language
The proliferation of modern programming languages (all of which seem to have stolen countless features from one another) sometimes makes it difficult to remember what language you’re currently using. This guide is offered as a public service to help programmers who find themselves in such dilemmas.
The link to the “other” page with patterns is wrong – see my post here for the correct link
Here’s an example of one
AWK
You try to shoot yourself in the second, third, and fifth toes of each foot, but you can’t match either foot at first. When you finally manage to, you load your toes into an associative array so as to shoot them more efficiently, but they don’t come up in the order you expect. Finally, you define a bowling ball function in the BEGIN block, process your feet, then call the function in the END block to drop a bowling ball on your foot if no toes were shot.
One Reply to “How to Shoot Yourself in the Foot in Any Programming Language”