83 Comments
- whisk3rs, on 10/12/2007, -1/+63Unix
% ls
foot.c foot.h foot.o toe.c toe.o
% rm * .o
rm: .o: No such file or directory
% ls
%
That is beautiful... especially because you ARE shooting yourself in the foot while trying to shoot yourself in the foot. - ostracize, on 10/12/2007, -2/+48Pythons don't have feet...duh!
- inactive, on 10/12/2007, -6/+46In Soviet Russia, the foot shoots you.
- arnar, on 10/12/2007, -0/+32actually.. that last one is a syntax error :)
- rodrigo74, on 10/12/2007, -1/+32Javascript:
document.parent.leg.foot.shoot();
* error: property or method not found *
document.parent.appendage.leg.foot.shoot();
* error: property or method not found *
document.parent.members.leg.foot.shoot();
* error: property or method not found *
document.parent.limbs.foot.shoot();
* error: property or method not found *
document.parent.limbs[0]leg.foot.shoot();
* error: property or method not found *
... - oriolesfan, on 10/12/2007, -4/+34Homer: hehe, It's funny cause it's true...
- mdmadph, on 10/12/2007, -1/+23ever tried coding in Assemby language? the author's description couldn't be more true. -_-'
- evilTak, on 10/12/2007, -2/+22Zoidberg: It's funny because it's poisonous!
- Scagli3tti, on 10/12/2007, -0/+19From the link at the bottom of the article :P
Python
* You shoot yourself in the foot and then brag for hours about how much more elegantly you did it than if you had been using C or (God forbid) Perl.
* You create a gun module, a gun class, a foot module, and a foot class. After realizing you can't point the gun at the foot, you pass a reference to the gun to a foot object. After the foot is blown up, the gun object remains alive for eternity, ready to shoot all future feet that may happen to appear. - arnar, on 10/12/2007, -1/+20Yeah, you're absolutely right.. just take care of properly indenting your foot. :)
- digitalsin, on 10/12/2007, -0/+15Digg:
1. You post an article on how to shoot yourself in the foot, but no one diggs it and you still have a foot
2. You post a 10 step list on ways to shoot yourself in the foot, and you almost shoot your foot off along with 200 other people
3. You post an article describing how YouTube is shooting itself in the foot by not selling out, with screenshots from the latest version of OS X being displayed using AJAX, and mention how much Microsoft sucks. You have successfully shot yourself in the foot, along with 250,000 other people. - digduggler, on 10/12/2007, -1/+15I laugh at this, which leads me to cry at my life.
- simpleid, on 10/12/2007, -1/+15http://www.reed.edu/~tuckers/jokes/foot.html
Far better. - JeremyBanks, on 10/12/2007, -1/+14How to shoot yourself in the foot in a web scripting language: Get Dugg.
http://duggmirror.com/programming/How_to_Shoot_Yourself_in_the_Foot_in_Any_Programming_Language - nofxjunkee, on 10/12/2007, -1/+14"Windows XP:
Some teenage hacker shoots you in the foot with ActiveX. You develop gangrene and die."
"Mac OS X:
You try to shoot yourself in the foot from the GUI but the gun has inexplicably turned into a bag of Skittles.
You open up the Terminal, type sudo shoot -p ~/Library/BodyParts/Preferences/foot.plist, and your kernel panics."
awesome. - sp1r1t, on 10/12/2007, -1/+14C++:
You accidentally created an infinite recursion with your "shoot foot" code and you create a stack overflow. - gharding, on 10/12/2007, -1/+13That's the only one that made me laugh.
- robotify, on 10/12/2007, -7/+18Hmm, I guess it must not be possible with Python. It really is a superior language.
- yasth, on 10/12/2007, -0/+11Assembly projects of more then a few k will indirectly cause you to shoot yourself in the head... multiple times.
- Maclir, on 10/12/2007, -0/+10I think I read the first version of that 25 years ago. Somewhere along the way, the PL/1 line has disappeared. It mentioned consuming all the off-line bullets...
- mwosh, on 10/12/2007, -0/+10I hear that. Hundreds of lines of code for a simple console app?
Forget the foot, shoot me in the face. - evilTak, on 10/12/2007, -3/+13The Visual Basic one is lame. Anyone who's having fun isn't using Visual Basic.
- MasteRR, on 10/12/2007, -3/+12They should add my favorite languages, ***** http://en.wikipedia.org/wiki/***** and Whitespace http://en.wikipedia.org/wiki/Whitespace_%28programming_language%29
*****:
You already shoot yourself in the foot just by trying to learn this language.
Whitespace:
You tried to shoot yourself in the foot, but can't seem to find it. - 00monkey, on 10/12/2007, -1/+10Mac OS X
* You try to shoot yourself in the foot from the GUI but the gun has inexplicably turned into a bag of Skittles.
* You open up the Terminal, type sudo shoot -p ~/Library/BodyParts/Preferences/foot.plist, and your kernel panics. - pinetree, on 10/12/2007, -1/+9Yep, that's a good one. I did that once. The memories. I'm liking it less now...
- slithy, on 10/12/2007, -2/+10Or it could go like: You drag and drop the gun over your foot. Assign pull trigger to the trigger button, but then stop because you realize you're not programming, but doing a mindless drag and drop.
- Tredici, on 10/12/2007, -2/+10Sorry, am I missing something here, or is this article suggesting that using C will get the job done more effectively than any other language!?
- jawadde, on 10/12/2007, -1/+9yeah... it should be something like : "you try to shoot yourself in the foot, only to find out after countess attempts that it is not called foot but feet, not gun but rifle, not bullet but ammuntition, not aim but direct and not shoot but 'projectile-inject' "
- camionmorto, on 10/12/2007, -0/+6That one really made me laugh too. All I could picture was the string of expletives spewing from my mouth right after I realized what I had done.
- dizzybastard, on 10/12/2007, -1/+7CSS
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....
hmm... IE .. get the hint =) - drakethegreat, on 10/12/2007, -0/+4Its like the hippie who moves to the forest to prove he doesn't want to be a part of civilization and wants to do everything on his own and then finally comes to realize that civilization was created by man for a reason and so he decides to only live there for about a week.
- wbradney, on 10/12/2007, -1/+5How about:
You have all the ActiveX controls available to you: Gun, Bullet, Foot and Trigger. But in order to actually load the gun and pull the trigger you have to figure out how to use the Gun32 API calls:
Public Declare Function SelectGunExt(lpszGunType As Long) As Long
Public Declare Sub LoadGunA(bulletHandle As Long, gunHandle As Long, flags As Long, lParam as Long)
Public Declare Sub Shoot(gunHandle As Long, foot As TARGET_DESCRIPTOR) - pyranose, on 10/12/2007, -0/+4Having already programmed in Forth and ADA (a loooong time ago) those two had me laughing...
- trogdoor, on 10/12/2007, -0/+3My favorite part about that Wikipedia article is the fact that they show a picture of whitespace with "syntax highlighting".
- WATYF, on 10/12/2007, -1/+4meh... the "drag and drop" VB slam is tired and lame (not to mention inaccurate). Here's a better one...
VB:
You do a Google search on how to shoot yourself in the foot using VB. You find seventeen completely different ways to do so, none of which are properly structured. You paste the first example into the IDE and compile. It brushes your teeth.
WATYF - Skullpop, on 10/12/2007, -2/+5I only got a few of them.. But the ones I did were funny. :)
- billymachine, on 10/12/2007, -0/+3Something about that last line made it really hilariously awesome!
- flipmeat, on 10/12/2007, -0/+3Heh, the Forth example used to be:
self foot shoot dup - wbradney, on 10/12/2007, -1/+4.... and no matter what you try you always get the error:
ActiveX component failed to create object - UltraNurd, on 10/12/2007, -0/+3My old CS department did this as a t-shirt a few years ago, although it was how to shoot yourself in the foot for each course.
- mjar81, on 10/12/2007, -0/+3lol. i use OS X every day and that made me laugh.
XCode:
* You try to decide what gun to use but there's an arsenal to choose from. You pick one and find out that you can take bullets from other caliber guns and insert them into the magazine of any gun. Everything winds up being horribly complicated that you have to look at Apple documentation to figure out how to ***** the gun and once you get it cocked, the user has to have administrator rights to pull the trigger. - gdaws, on 10/12/2007, -0/+3It's a programming language because it gets "interpreted"? Every language and data format in existence must be a programming language then? Programming languages are languages for making programs, you can't make programs with CSS. End of.
- rodrigo74, on 10/12/2007, -1/+3yep bad copy/paste :)
- wkdown, on 10/12/2007, -1/+3QBASIC
10 print foot
20 print gun
30 print "I shot the foot, but I did not shoot the deputy"
40 goto 10
WINDOWS XP
You try to shoot yourself in the foot but instead receive a BSOD memory stack error and cannot reboot even in Safe Mode (hence successfully shooting yourself in the foot) - 256byteram, on 10/12/2007, -0/+2: SHOOTSELF
FOOT GUN AIM FIRE EMIT ;
if you don't want to see the result EMIT can become DROP ;)
I think i'm going to cry now... - Kelmon, on 10/12/2007, -0/+2Ah, Modula2 takes me back to university when I discovered that I couldn't program for *****. I still can't program for ***** but at least I've come to terms with this now. Regardless, the Modula2 one brought a smile to my face.
- mjar81, on 10/12/2007, -0/+2i'm such a nerd because that made me laugh... not only do i understand ABAP (partially) i understood that german.
ABAP is the most horrid language ever devised by humankind.
enough. said. - dgrinb01, on 10/12/2007, -0/+2Javascript should be modified to include “Done, but with errors on the foot” - “Expected ‘)’”
- DavidDigg, on 10/12/2007, -0/+2They have HyperTalk! Yay!
- duality, on 10/12/2007, -0/+2The "shoot yourself in the foot" jokes never seem to get old. Further inspiration:
http://www.crowl.org/Lawrence/programming/foot1.html
Forgive me for cutting and pasting. Here are a few I invented back in April.
Scheme:
You shoot yourself in the foot, then hand the gun to the next person, who shoots himself in the foot, and then hands the gun to the next person, who shoots himself in the foot, ....
Smalltalk:
You send a message to the gun, telling it to shoot your foot. The gun tells its rotational coordinates to point it at your foot, then it tells its next bullet to fire. The bullet tells your foot that it's been shot. The foot tells its blood to come squirting out of it, then it tells you to scream.
Eiffel:
You write a contract saying that your gun should shoot you in the foot, and explaining all the ways that it's not supposed to do it.
Java:
Anybody can shoot themselves in any kind of foot with any kind of gun that's loaded with any kind of bullet. However, they can only do it if their system is running a compatible Java Runtime Environment.
C#:
Microsoft shoots you in the foot, then declares that this is the standard way for people to shoot themselves in their feet. -
Show 51 - 82 of 82 discussions



What is Digg?
Browsing Digg on your phone just got easier with our enhancements to the