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 a Programmer with broken English types code

How a Programmer with broken English types code

Scheduled Pinned Locked Moved The Lounge
csshelp
24 Posts 15 Posters 0 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.
  • U User 3980377

    Here is what s programmer who often speaks bad or broken English would type when programming. The code he would add is something like:

    var mike
    If (mike =jerk) Than
    mike=0
    end
    var less_then
    if (joe = less_then ) than
    joe=100
    end
    joe.status = definately

    Then the log reads:

    Compiler error: Unknown keyword "Than"
    Compiler error: Illegal variable name "less_then"
    Compiler error: Illegal grammar "definately"

    P Offline
    P Offline
    PIEBALDconsult
    wrote on last edited by
    #3

    Maybe take it to "Weird and Wonderful" ? It does point out why computer languages should not be based on natural language.

    L 1 Reply Last reply
    0
    • OriginalGriffO OriginalGriff

      Um. I don't really get your point. Yes, that's rubbish code. No, it won't compile in any sensible language. Even English. But quite why you posted it here I have no idea.

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #4

      Looks trollish to me.

      1 Reply Last reply
      0
      • U User 3980377

        Here is what s programmer who often speaks bad or broken English would type when programming. The code he would add is something like:

        var mike
        If (mike =jerk) Than
        mike=0
        end
        var less_then
        if (joe = less_then ) than
        joe=100
        end
        joe.status = definately

        Then the log reads:

        Compiler error: Unknown keyword "Than"
        Compiler error: Illegal variable name "less_then"
        Compiler error: Illegal grammar "definately"

        K Offline
        K Offline
        KarstenK
        wrote on last edited by
        #5

        the compiler is the best friend of the programmer :rolleyes:

        Press F1 for help or google it. Greetings from Germany

        OriginalGriffO 1 Reply Last reply
        0
        • K KarstenK

          the compiler is the best friend of the programmer :rolleyes:

          Press F1 for help or google it. Greetings from Germany

          OriginalGriffO Offline
          OriginalGriffO Offline
          OriginalGriff
          wrote on last edited by
          #6

          Nah ... the compiler is a mate (a good mate, but not besties) - the debugger is his best friend!

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

          P 1 Reply Last reply
          0
          • U User 3980377

            Here is what s programmer who often speaks bad or broken English would type when programming. The code he would add is something like:

            var mike
            If (mike =jerk) Than
            mike=0
            end
            var less_then
            if (joe = less_then ) than
            joe=100
            end
            joe.status = definately

            Then the log reads:

            Compiler error: Unknown keyword "Than"
            Compiler error: Illegal variable name "less_then"
            Compiler error: Illegal grammar "definately"

            G Offline
            G Offline
            GuyThiebaut
            wrote on last edited by
            #7

            Member 3983331 wrote:

            If (mike =jerk)

            In many popular programming languages that if statement will always resolve as true and you will be mutating mike to be a jerk. So in effect, generalising for many popular programming languages, mike is always a jerk based on the code above.

            “That which can be asserted without evidence, can be dismissed without evidence.”

            ― Christopher Hitchens

            D 1 Reply Last reply
            0
            • U User 3980377

              Here is what s programmer who often speaks bad or broken English would type when programming. The code he would add is something like:

              var mike
              If (mike =jerk) Than
              mike=0
              end
              var less_then
              if (joe = less_then ) than
              joe=100
              end
              joe.status = definately

              Then the log reads:

              Compiler error: Unknown keyword "Than"
              Compiler error: Illegal variable name "less_then"
              Compiler error: Illegal grammar "definately"

              C Offline
              C Offline
              Chris Maunder
              wrote on last edited by
              #8

              Is this a commentary against IDEs not picking up the mistakes before compilation? Or about developers who simply don't have the skills to code being offered jobs, without adequate on the job training, making life hard for others in the team? Or are you simply bashing the 80% of the Earth's population that don't speak English?

              cheers Chris Maunder

              P Richard Andrew x64R L J 4 Replies Last reply
              0
              • OriginalGriffO OriginalGriff

                Nah ... the compiler is a mate (a good mate, but not besties) - the debugger is his best friend!

                "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

                P Offline
                P Offline
                PIEBALDconsult
                wrote on last edited by
                #9

                Pfft, no. The debugger is more like a programmer's mother-in-law.

                1 Reply Last reply
                0
                • C Chris Maunder

                  Is this a commentary against IDEs not picking up the mistakes before compilation? Or about developers who simply don't have the skills to code being offered jobs, without adequate on the job training, making life hard for others in the team? Or are you simply bashing the 80% of the Earth's population that don't speak English?

                  cheers Chris Maunder

                  P Offline
                  P Offline
                  PIEBALDconsult
                  wrote on last edited by
                  #10

                  It just seems trollish to me.

                  1 Reply Last reply
                  0
                  • C Chris Maunder

                    Is this a commentary against IDEs not picking up the mistakes before compilation? Or about developers who simply don't have the skills to code being offered jobs, without adequate on the job training, making life hard for others in the team? Or are you simply bashing the 80% of the Earth's population that don't speak English?

                    cheers Chris Maunder

                    Richard Andrew x64R Offline
                    Richard Andrew x64R Offline
                    Richard Andrew x64
                    wrote on last edited by
                    #11

                    I think he's bashing the people who do speak English, but never paid attention in school.

                    The difficult we do right away... ...the impossible takes slightly longer.

                    1 Reply Last reply
                    0
                    • G GuyThiebaut

                      Member 3983331 wrote:

                      If (mike =jerk)

                      In many popular programming languages that if statement will always resolve as true and you will be mutating mike to be a jerk. So in effect, generalising for many popular programming languages, mike is always a jerk based on the code above.

                      “That which can be asserted without evidence, can be dismissed without evidence.”

                      ― Christopher Hitchens

                      D Offline
                      D Offline
                      David ONeil
                      wrote on last edited by
                      #12

                      GuyThiebaut wrote:

                      ...mike is always a jerk based on the code above.

                      Still better than mike = Karen; :rolleyes: (No offense meant to those Karen's who haven't appeared on the numerous YouTube vids now prelevant.)

                      The forgotten roots of science | C++ Programming | DWinLib

                      G 1 Reply Last reply
                      0
                      • C Chris Maunder

                        Is this a commentary against IDEs not picking up the mistakes before compilation? Or about developers who simply don't have the skills to code being offered jobs, without adequate on the job training, making life hard for others in the team? Or are you simply bashing the 80% of the Earth's population that don't speak English?

                        cheers Chris Maunder

                        L Offline
                        L Offline
                        Lost User
                        wrote on last edited by
                        #13

                        It might be a rant typed into an interpreter after a bad day at the office.

                        It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it. ― Confucian Analects: Rules of Confucius about his food

                        1 Reply Last reply
                        0
                        • C Chris Maunder

                          Is this a commentary against IDEs not picking up the mistakes before compilation? Or about developers who simply don't have the skills to code being offered jobs, without adequate on the job training, making life hard for others in the team? Or are you simply bashing the 80% of the Earth's population that don't speak English?

                          cheers Chris Maunder

                          J Offline
                          J Offline
                          Jon McKee
                          wrote on last edited by
                          #14

                          I'm gonna guess a spoonful of #3 with a drizzle of #2 to really bring out the flavor.

                          1 Reply Last reply
                          0
                          • D David ONeil

                            GuyThiebaut wrote:

                            ...mike is always a jerk based on the code above.

                            Still better than mike = Karen; :rolleyes: (No offense meant to those Karen's who haven't appeared on the numerous YouTube vids now prelevant.)

                            The forgotten roots of science | C++ Programming | DWinLib

                            G Offline
                            G Offline
                            GuyThiebaut
                            wrote on last edited by
                            #15

                            I am so tempted to make a comment on that, but given the current climate, anything I said would get me into trouble...

                            “That which can be asserted without evidence, can be dismissed without evidence.”

                            ― Christopher Hitchens

                            D 1 Reply Last reply
                            0
                            • OriginalGriffO OriginalGriff

                              Um. I don't really get your point. Yes, that's rubbish code. No, it won't compile in any sensible language. Even English. But quite why you posted it here I have no idea.

                              "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

                              Z Offline
                              Z Offline
                              ZurdoDev
                              wrote on last edited by
                              #16

                              OriginalGriff wrote:

                              . I don't really get your point.

                              Don't you speak in your mind when writing code? If this happens then do this, but you type out c#. If your English was not very good, you're c# would also not compile.

                              Social Media - A platform that makes it easier for the crazies to find each other. Everyone is born right handed. Only the strongest overcome it. Fight for left-handed rights and hand equality.

                              S 1 Reply Last reply
                              0
                              • U User 3980377

                                Here is what s programmer who often speaks bad or broken English would type when programming. The code he would add is something like:

                                var mike
                                If (mike =jerk) Than
                                mike=0
                                end
                                var less_then
                                if (joe = less_then ) than
                                joe=100
                                end
                                joe.status = definately

                                Then the log reads:

                                Compiler error: Unknown keyword "Than"
                                Compiler error: Illegal variable name "less_then"
                                Compiler error: Illegal grammar "definately"

                                Z Offline
                                Z Offline
                                ZurdoDev
                                wrote on last edited by
                                #17

                                I understood what you are saying. :thumbsup:

                                Social Media - A platform that makes it easier for the crazies to find each other. Everyone is born right handed. Only the strongest overcome it. Fight for left-handed rights and hand equality.

                                1 Reply Last reply
                                0
                                • OriginalGriffO OriginalGriff

                                  Um. I don't really get your point. Yes, that's rubbish code. No, it won't compile in any sensible language. Even English. But quite why you posted it here I have no idea.

                                  "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

                                  W Offline
                                  W Offline
                                  W Balboos GHB
                                  wrote on last edited by
                                  #18

                                  I think the whole point was to get to the (highlighted) punch line: Compiler error: Unknown keyword "Than" Compiler error: Illegal variable name "less_then" Compiler error: Illegal grammar "definately" To give whomever it is a break, I'd say it must have seemed funnier when he/she thought of it when it actually turned out.

                                  Ravings en masse^

                                  "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

                                  "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

                                  OriginalGriffO 1 Reply Last reply
                                  0
                                  • W W Balboos GHB

                                    I think the whole point was to get to the (highlighted) punch line: Compiler error: Unknown keyword "Than" Compiler error: Illegal variable name "less_then" Compiler error: Illegal grammar "definately" To give whomever it is a break, I'd say it must have seemed funnier when he/she thought of it when it actually turned out.

                                    Ravings en masse^

                                    "The difference between genius and stupidity is that genius has its limits." - Albert Einstein

                                    "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

                                    OriginalGriffO Offline
                                    OriginalGriffO Offline
                                    OriginalGriff
                                    wrote on last edited by
                                    #19

                                    "If you have to explain a joke, it isn't funny". :-D

                                    "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

                                    "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                                    "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                                    1 Reply Last reply
                                    0
                                    • P PIEBALDconsult

                                      Maybe take it to "Weird and Wonderful" ? It does point out why computer languages should not be based on natural language.

                                      L Offline
                                      L Offline
                                      littleGreenDude
                                      wrote on last edited by
                                      #20

                                      Better yet... Start a "Weird and Not So Wonderful"

                                      Remember, no matter where you go... there you are.

                                      1 Reply Last reply
                                      0
                                      • G GuyThiebaut

                                        I am so tempted to make a comment on that, but given the current climate, anything I said would get me into trouble...

                                        “That which can be asserted without evidence, can be dismissed without evidence.”

                                        ― Christopher Hitchens

                                        D Offline
                                        D Offline
                                        David ONeil
                                        wrote on last edited by
                                        #21

                                        "There be sharks in them waters!" :laugh:

                                        The forgotten roots of science | C++ Programming | DWinLib

                                        1 Reply Last reply
                                        0
                                        • OriginalGriffO OriginalGriff

                                          Um. I don't really get your point. Yes, that's rubbish code. No, it won't compile in any sensible language. Even English. But quite why you posted it here I have no idea.

                                          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!

                                          D Offline
                                          D Offline
                                          dandy72
                                          wrote on last edited by
                                          #22

                                          Exactly. If the compiler catches it all, then why is it even a problem to be discussed? If it doesn't compile, it shouldn't be checked in. Which means I'll never get to see your broken code. (well, not any code that breaks any syntax rule...)

                                          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