How to Shoot Yourself in the Foot in Any Programming Language

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.

Advertisements

One Reply to “How to Shoot Yourself in the Foot in Any Programming Language”

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s