Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. How to shoot yourself in the foot

How to shoot yourself in the foot

Scheduled Pinned Locked Moved The Lounge
c++delphidatabasetutorial
51 Posts 32 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • OriginalGriffO OriginalGriff

    That explains the Corporate Wh*re promotion then!

    Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together. Manfred R. Bihy: "Looks as if OP is learning resistant."

    S Offline
    S Offline
    Slacker007
    wrote on last edited by
    #17

    :-D

    -- ** You don't hire a handyman to build a house, you hire a carpenter. ** Jack of all trades and master of none.

    1 Reply Last reply
    0
    • I Ian Shlasko

      Ger Hayden wrote:

      Modula-2
      After realizing that you can't actually accomplish anything in this language, you shoot yourself in the head.

      Ah, memories... They made us use Modula-3 in college for my first two years... Such a useless language... Of course, then they switched to Java and wasted a semester teaching third-year students how to write for loops, because apparently curly-braces are scary and make kids cry.

      Proud to have finally moved to the A-Ark. Which one are you in?
      Author of the Guardians Saga (Sci-Fi/Fantasy novels)

      T Offline
      T Offline
      thrakazog
      wrote on last edited by
      #18

      Ian Shlasko wrote:

      They made us use Modula-3 in college for my first two years

      I had 3 years of ADA. Try pimping that on a resume. X|

      S R 2 Replies Last reply
      0
      • G Ger Hayden

        Presumably a repost - but I never tire of it... C You shoot yourself in the foot. C++ You accidently create a dozen instances 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." FORTRAN You shoot yourself in each toe, iteratively, until you run out of toes, then you read in the next foot and repeat. If you run out of bullets, you continue anyway because you have no exception-handling facility. Modula-2 After realizing that you can't actually accomplish anything in this language, you shoot yourself in the head. COBOL USEing a COLT 45 HANDGUN, AIM gun at LEG.FOOT, THEN place ARM.HAND.FINGER on HANDGUN.TRIGGER and SQUEEZE. THEN return HANDGUN to HOLSTER. CHECK whether shoelace needs to be retied. Lisp You shoot yourself in the appendage which holds the gun with which you shoot yourself in the appendage which holds the gun with which you shoot yourself in the appendage which holds... BASIC Shoot yourself in the foot with a water pistol. On big systems, continue until entire lower body is waterlogged. Forth Foot yourself in the shoot. APL You shoot yourself in the foot; then spend all day figuring out how to do it in fewer characters. Pascal The compiler won't let you shoot yourself in the foot. Snobol If you succeed, shoot yourself in the left foot. If you fail, shoot yourself in the right foot. HyperTalk Put the first bullet of the gun into foot left of leg of you. Answer the result. Prolog You tell your program you want to be shot in the foot. The program figures out how to do it, but the syntax doesn't allow it to explain. 370 JCL You send your foot down to MIS with a 4000-page document explaining how you want it to be shot. Three years later, your foot comes back deep-fried. FORTRAN-77 You shoot yourself in each toe, iteratively, until you run out of toes, then you read in the next foot and repeat. If you run out of bullets, you continue anyway because you still can't do exception-processing. Modula-2 (alternative) You perform a shooting on what might be currently a foot with what might be currently a bullet shot by what might currently be a gun. BASIC (compiled) You shoot yourself in the foot with a BB using a SCUD missile launcher. Visual Basic You'll really only appear to have shot yourself in the foot, but you'll have so much fun doing it that you won't care. Forth (alternati

        H Offline
        H Offline
        Henry Minute
        wrote on last edited by
        #19

        I was thinking about this joke only last week. I first saw it back in the eighties ( which is why, I suspect, the references to dBase, Clipper etc.) when it was disseminated courtesy of that nice Mr Xerox (and his relatives). Doing so made me also remember another one from about the same time, and similarly distributed, which was a Sequence/Flow chart for the development process of an application. It ended with a cloud bubble containing "And then a miracle happened, and we shipped!". Very funny it was too. Alas, despite several attempts to find a version on-line at various times, I have been unable to share it.

        Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.

        1 Reply Last reply
        0
        • T thrakazog

          Call me Ishmael.....

          H Offline
          H Offline
          Henry Minute
          wrote on last edited by
          #20

          Oi! Ishmael....

          Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.

          R 1 Reply Last reply
          0
          • I Ian Shlasko

            Albert Holguin wrote:

            so what happened to C#?

            C# You prepare the gun and the bullet, carefully modeling all of the physics of a bullet traveling through a foot. Just before you're about to pull the trigger, you stumble on System.Windows.BodyParts.Foot.ShootAt(System.Windows.Firearms.IGun gun) in the extended framework, realize you just wasted the entire afternoon, and shoot yourself in the head.

            Proud to have finally moved to the A-Ark. Which one are you in?
            Author of the Guardians Saga (Sci-Fi/Fantasy novels)

            S Offline
            S Offline
            Slacker007
            wrote on last edited by
            #21

            Brilliant. I would like to sign up for the new version of this gun and bullet when it comes out.

            -- ** You don't hire a handyman to build a house, you hire a carpenter. ** Jack of all trades and master of none.

            I 1 Reply Last reply
            0
            • T thrakazog

              Ian Shlasko wrote:

              They made us use Modula-3 in college for my first two years

              I had 3 years of ADA. Try pimping that on a resume. X|

              S Offline
              S Offline
              Slacker007
              wrote on last edited by
              #22

              thrakazog wrote:

              Try pimping that on a resume.

              :laugh:

              -- ** You don't hire a handyman to build a house, you hire a carpenter. ** Jack of all trades and master of none.

              1 Reply Last reply
              0
              • I Ian Shlasko

                Albert Holguin wrote:

                so what happened to C#?

                C# You prepare the gun and the bullet, carefully modeling all of the physics of a bullet traveling through a foot. Just before you're about to pull the trigger, you stumble on System.Windows.BodyParts.Foot.ShootAt(System.Windows.Firearms.IGun gun) in the extended framework, realize you just wasted the entire afternoon, and shoot yourself in the head.

                Proud to have finally moved to the A-Ark. Which one are you in?
                Author of the Guardians Saga (Sci-Fi/Fantasy novels)

                F Offline
                F Offline
                Fernando A Gomez F
                wrote on last edited by
                #23

                Just remember to have full trust or the [assembly: AllowPartiallyTrustedCallers] directive in your assembly, otherwise you won't be able to access the head.

                I 1 Reply Last reply
                0
                • H Henry Minute

                  Oi! Ishmael....

                  Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” I wouldn't let CG touch my Abacus! When you're wrestling a gorilla, you don't stop when you're tired, you stop when the gorilla is.

                  R Offline
                  R Offline
                  Rutvik Dave
                  wrote on last edited by
                  #24

                  :laugh:

                  It's a shame that stupidity can't be converted into a usable energy source.

                  1 Reply Last reply
                  0
                  • I Ian Shlasko

                    Albert Holguin wrote:

                    so what happened to C#?

                    C# You prepare the gun and the bullet, carefully modeling all of the physics of a bullet traveling through a foot. Just before you're about to pull the trigger, you stumble on System.Windows.BodyParts.Foot.ShootAt(System.Windows.Firearms.IGun gun) in the extended framework, realize you just wasted the entire afternoon, and shoot yourself in the head.

                    Proud to have finally moved to the A-Ark. Which one are you in?
                    Author of the Guardians Saga (Sci-Fi/Fantasy novels)

                    R Offline
                    R Offline
                    Rage
                    wrote on last edited by
                    #25

                    Ian Shlasko wrote:

                    shoot yourself in the foot head

                    Done !

                    1 Reply Last reply
                    0
                    • S Slacker007

                      Brilliant. I would like to sign up for the new version of this gun and bullet when it comes out.

                      -- ** You don't hire a handyman to build a house, you hire a carpenter. ** Jack of all trades and master of none.

                      I Offline
                      I Offline
                      Ian Shlasko
                      wrote on last edited by
                      #26

                      Skip the next version... Rumor has it, there's a trajectory error that could cause unpredictable results. Microsoft is looking into it, but there's a good chance they'll just mark it "Won't fix" and deprecate the method.

                      Proud to have finally moved to the A-Ark. Which one are you in?
                      Author of the Guardians Saga (Sci-Fi/Fantasy novels)

                      1 Reply Last reply
                      0
                      • F Fernando A Gomez F

                        Just remember to have full trust or the [assembly: AllowPartiallyTrustedCallers] directive in your assembly, otherwise you won't be able to access the head.

                        I Offline
                        I Offline
                        Ian Shlasko
                        wrote on last edited by
                        #27

                        That's by design. I mean, you wouldn't want just ANY program shooting you in the foot, right? That's what C++ is for.

                        Proud to have finally moved to the A-Ark. Which one are you in?
                        Author of the Guardians Saga (Sci-Fi/Fantasy novels)

                        F 1 Reply Last reply
                        0
                        • T thrakazog

                          Wow, I didn't know you could post an entire novel into the lounge.

                          R Offline
                          R Offline
                          Rage
                          wrote on last edited by
                          #28

                          thrakazog wrote:

                          I didn't know you could post an entire novel into the lounge AND get 5-votes.

                          FTFY

                          1 Reply Last reply
                          0
                          • G Ger Hayden

                            Presumably a repost - but I never tire of it... C You shoot yourself in the foot. C++ You accidently create a dozen instances 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." FORTRAN You shoot yourself in each toe, iteratively, until you run out of toes, then you read in the next foot and repeat. If you run out of bullets, you continue anyway because you have no exception-handling facility. Modula-2 After realizing that you can't actually accomplish anything in this language, you shoot yourself in the head. COBOL USEing a COLT 45 HANDGUN, AIM gun at LEG.FOOT, THEN place ARM.HAND.FINGER on HANDGUN.TRIGGER and SQUEEZE. THEN return HANDGUN to HOLSTER. CHECK whether shoelace needs to be retied. Lisp You shoot yourself in the appendage which holds the gun with which you shoot yourself in the appendage which holds the gun with which you shoot yourself in the appendage which holds... BASIC Shoot yourself in the foot with a water pistol. On big systems, continue until entire lower body is waterlogged. Forth Foot yourself in the shoot. APL You shoot yourself in the foot; then spend all day figuring out how to do it in fewer characters. Pascal The compiler won't let you shoot yourself in the foot. Snobol If you succeed, shoot yourself in the left foot. If you fail, shoot yourself in the right foot. HyperTalk Put the first bullet of the gun into foot left of leg of you. Answer the result. Prolog You tell your program you want to be shot in the foot. The program figures out how to do it, but the syntax doesn't allow it to explain. 370 JCL You send your foot down to MIS with a 4000-page document explaining how you want it to be shot. Three years later, your foot comes back deep-fried. FORTRAN-77 You shoot yourself in each toe, iteratively, until you run out of toes, then you read in the next foot and repeat. If you run out of bullets, you continue anyway because you still can't do exception-processing. Modula-2 (alternative) You perform a shooting on what might be currently a foot with what might be currently a bullet shot by what might currently be a gun. BASIC (compiled) You shoot yourself in the foot with a BB using a SCUD missile launcher. Visual Basic You'll really only appear to have shot yourself in the foot, but you'll have so much fun doing it that you won't care. Forth (alternati

                            A Offline
                            A Offline
                            Anna Jayne Metcalfe
                            wrote on last edited by
                            #29

                            How programmers see each other[^] :cool:

                            Anna :rose: Tech Blog | Visual Lint "Why would anyone prefer to wield a weapon that takes both hands at once, when they could use a lighter (and obviously superior) weapon that allows you to wield multiple ones at a time, and thus supports multi-paradigm carnage?"

                            M 1 Reply Last reply
                            0
                            • A Albert Holguin

                              so what happened to C#? :doh:

                              realJSOPR Offline
                              realJSOPR Offline
                              realJSOP
                              wrote on last edited by
                              #30

                              You can only shoot yourself in the foot if you use the unsafe keyword.

                              ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                              -----
                              You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                              -----
                              "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997

                              1 Reply Last reply
                              0
                              • A Anna Jayne Metcalfe

                                How programmers see each other[^] :cool:

                                Anna :rose: Tech Blog | Visual Lint "Why would anyone prefer to wield a weapon that takes both hands at once, when they could use a lighter (and obviously superior) weapon that allows you to wield multiple ones at a time, and thus supports multi-paradigm carnage?"

                                M Offline
                                M Offline
                                Mladen Jankovic
                                wrote on last edited by
                                #31

                                Good one

                                [Genetic Algorithm Library]

                                1 Reply Last reply
                                0
                                • T thrakazog

                                  Ian Shlasko wrote:

                                  They made us use Modula-3 in college for my first two years

                                  I had 3 years of ADA. Try pimping that on a resume. X|

                                  R Offline
                                  R Offline
                                  Roger Wright
                                  wrote on last edited by
                                  #32

                                  thrakazog wrote:

                                  Try pimping that on a resume

                                  :laugh: :laugh: :laugh: Poor soul. I had to take a class in Ada while at TRW, because DoD required all applications to be written in the language, and compiled using a "qualified" compiler. There were no "qualified" compilers in existence at the time, but management was sure that one would come along one of these days... As I had recently been in the same spot at a previous company, required to deliver all embedded software in JOVIAL (for which no "qualified" compiler existed at the time, either) I happily attended classes, got paid for it, and never had to type a single line of Ada. But I've still got the textbooks, if you'd like them. :-D

                                  Will Rogers never met me.

                                  T 1 Reply Last reply
                                  0
                                  • I Ian Shlasko

                                    Ger Hayden wrote:

                                    Modula-2
                                    After realizing that you can't actually accomplish anything in this language, you shoot yourself in the head.

                                    Ah, memories... They made us use Modula-3 in college for my first two years... Such a useless language... Of course, then they switched to Java and wasted a semester teaching third-year students how to write for loops, because apparently curly-braces are scary and make kids cry.

                                    Proud to have finally moved to the A-Ark. Which one are you in?
                                    Author of the Guardians Saga (Sci-Fi/Fantasy novels)

                                    F Offline
                                    F Offline
                                    Flo Lee
                                    wrote on last edited by
                                    #33

                                    Ian Shlasko wrote:

                                    Ah, memories...

                                    Same here... Coming from the technical school after having learned Pascal for 2 or 3 years, the university scared me by forcing us to use Modula-2. I passed only with good luck. Then, 2 or 3 years later they switched the course to Java. regards

                                    1 Reply Last reply
                                    0
                                    • G Ger Hayden

                                      Presumably a repost - but I never tire of it... C You shoot yourself in the foot. C++ You accidently create a dozen instances 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." FORTRAN You shoot yourself in each toe, iteratively, until you run out of toes, then you read in the next foot and repeat. If you run out of bullets, you continue anyway because you have no exception-handling facility. Modula-2 After realizing that you can't actually accomplish anything in this language, you shoot yourself in the head. COBOL USEing a COLT 45 HANDGUN, AIM gun at LEG.FOOT, THEN place ARM.HAND.FINGER on HANDGUN.TRIGGER and SQUEEZE. THEN return HANDGUN to HOLSTER. CHECK whether shoelace needs to be retied. Lisp You shoot yourself in the appendage which holds the gun with which you shoot yourself in the appendage which holds the gun with which you shoot yourself in the appendage which holds... BASIC Shoot yourself in the foot with a water pistol. On big systems, continue until entire lower body is waterlogged. Forth Foot yourself in the shoot. APL You shoot yourself in the foot; then spend all day figuring out how to do it in fewer characters. Pascal The compiler won't let you shoot yourself in the foot. Snobol If you succeed, shoot yourself in the left foot. If you fail, shoot yourself in the right foot. HyperTalk Put the first bullet of the gun into foot left of leg of you. Answer the result. Prolog You tell your program you want to be shot in the foot. The program figures out how to do it, but the syntax doesn't allow it to explain. 370 JCL You send your foot down to MIS with a 4000-page document explaining how you want it to be shot. Three years later, your foot comes back deep-fried. FORTRAN-77 You shoot yourself in each toe, iteratively, until you run out of toes, then you read in the next foot and repeat. If you run out of bullets, you continue anyway because you still can't do exception-processing. Modula-2 (alternative) You perform a shooting on what might be currently a foot with what might be currently a bullet shot by what might currently be a gun. BASIC (compiled) You shoot yourself in the foot with a BB using a SCUD missile launcher. Visual Basic You'll really only appear to have shot yourself in the foot, but you'll have so much fun doing it that you won't care. Forth (alternati

                                      D Offline
                                      D Offline
                                      Danny Martin
                                      wrote on last edited by
                                      #34

                                      <?php require("foot_safety_check.php"); ?> <!DOCTYPE HTML> <html> <head> <!--Lower!--> <title>Shooting me in the foot</title> </head> <body> <!--LOWER!!!--> <leg> <!--OK, I made this one up...--> <footer> <?php echo (dungSift($_SERVER['HTTP_USER_AGENT'], "ie"))?("Your foot is safe, but you might want to wear a hard hat!"):("<div class=\"shot\">BANG!</div>"); ?> </footer> </leg> </body> </html>

                                      modified on Tuesday, June 7, 2011 10:00 AM

                                      1 Reply Last reply
                                      0
                                      • G Ger Hayden

                                        Presumably a repost - but I never tire of it... C You shoot yourself in the foot. C++ You accidently create a dozen instances 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." FORTRAN You shoot yourself in each toe, iteratively, until you run out of toes, then you read in the next foot and repeat. If you run out of bullets, you continue anyway because you have no exception-handling facility. Modula-2 After realizing that you can't actually accomplish anything in this language, you shoot yourself in the head. COBOL USEing a COLT 45 HANDGUN, AIM gun at LEG.FOOT, THEN place ARM.HAND.FINGER on HANDGUN.TRIGGER and SQUEEZE. THEN return HANDGUN to HOLSTER. CHECK whether shoelace needs to be retied. Lisp You shoot yourself in the appendage which holds the gun with which you shoot yourself in the appendage which holds the gun with which you shoot yourself in the appendage which holds... BASIC Shoot yourself in the foot with a water pistol. On big systems, continue until entire lower body is waterlogged. Forth Foot yourself in the shoot. APL You shoot yourself in the foot; then spend all day figuring out how to do it in fewer characters. Pascal The compiler won't let you shoot yourself in the foot. Snobol If you succeed, shoot yourself in the left foot. If you fail, shoot yourself in the right foot. HyperTalk Put the first bullet of the gun into foot left of leg of you. Answer the result. Prolog You tell your program you want to be shot in the foot. The program figures out how to do it, but the syntax doesn't allow it to explain. 370 JCL You send your foot down to MIS with a 4000-page document explaining how you want it to be shot. Three years later, your foot comes back deep-fried. FORTRAN-77 You shoot yourself in each toe, iteratively, until you run out of toes, then you read in the next foot and repeat. If you run out of bullets, you continue anyway because you still can't do exception-processing. Modula-2 (alternative) You perform a shooting on what might be currently a foot with what might be currently a bullet shot by what might currently be a gun. BASIC (compiled) You shoot yourself in the foot with a BB using a SCUD missile launcher. Visual Basic You'll really only appear to have shot yourself in the foot, but you'll have so much fun doing it that you won't care. Forth (alternati

                                        X Offline
                                        X Offline
                                        xperroni
                                        wrote on last edited by
                                        #35

                                        Python You try to use import foot; foot.shoot() only to realize that's only available in 3.0, to which you can't yet upgrade from 2.7 because of all those extension libs lacking support.

                                        F 1 Reply Last reply
                                        0
                                        • X xperroni

                                          Python You try to use import foot; foot.shoot() only to realize that's only available in 3.0, to which you can't yet upgrade from 2.7 because of all those extension libs lacking support.

                                          F Offline
                                          F Offline
                                          Fabio Hasseck
                                          wrote on last edited by
                                          #36

                                          but one question remain is: how to do it on Windows 98,xp,vista and 7? and how Skynet do it? send a terminator from the future to shoot it? XD

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups