This is destined to be a classic.

My favorites:

C++
You accidentally create a dozen clones of yourself and shoot them all in the foot. Providing emergency medical assistance is impossible since you can’t tell which are bitwise copies and which are just pointing at others and saying, “That’s me, over there.”

JAVA
After importing java.awt.right.foot.* and java.awt.gun.right.hand.*, and writing the classes and methods of those classes needed, you’ve forgotten what the hell you’re doing.

Ruby
Your foot is ready to be shot in roughly five minutes, but you just can’t find anywhere to shoot it.

PHP
You shoot yourself in the foot with a gun made with pieces from 300 other guns.

ASP.NET
Find a gun, it falls apart. Put it back together, it falls apart again. You try using the .GUN Framework, it falls apart. You stab yourself in the foot instead.

SQL
SELECT @ammo:=bullet FROM gun WHERE trigger = ‘PULLED’;
INSERT INTO leg (foot) VALUES (@ammo);

Perl
You shoot yourself in the foot, but nobody can understand how you did it. Six months later, neither can you. (via Andy)

CSS
You shoot your right foot with one hand, then switch hands to shoot your left foot but you realize that the gun has turned into a banana.

You can Bookmark this entry on del.icio.usbookmark this, digg this entrydigg this or check the See this page in technoraticosmos

2 Responses to “How to Shoot Yourself in the Foot in Any Programming Language”

  1. Gravatar Icon 1 Carlos Gabaldon 

    I love this, but let’s do:
    Ruby.Gun.new do |shoot|
    shoot.java
    shoot.c_sharp
    end

  2. Gravatar Icon 2 Shanti A. Braford 

    that’s a good one too =)

    I honestly didn’t even get the Ruby one.


Shanti A. Braford blogs here.

If you really want to know, just read this.



  

Powered by FeedBlitz