How to Shoot Yourself in the Foot in Any Programming Language
These are pretty hilarious! Some of my favorites are
- 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.
- Visual Basic - You’ll shoot yourself in the foot, but you’ll have so much fun doing it that you won’t care.
- Python - You try to shoot yourself in the foot but you just keep hitting the whitespace between your toes.



