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. The Word GOTO is not as bad as the word Hardcoded

The Word GOTO is not as bad as the word Hardcoded

Scheduled Pinned Locked Moved The Lounge
10 Posts 10 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.
  • R Offline
    R Offline
    rnbergren
    wrote on last edited by
    #1

    Seriously, The end users just love to say well just hardcode it to always work that way. At least with GOTO they don't know it exists. With Hardcoding they have heard it and the users like it because it sounds like a sledge hammer to them and they love to sledge hammer things into submission.

    To err is human to really mess up you need a computer

    C B M G R 6 Replies Last reply
    0
    • R rnbergren

      Seriously, The end users just love to say well just hardcode it to always work that way. At least with GOTO they don't know it exists. With Hardcoding they have heard it and the users like it because it sounds like a sledge hammer to them and they love to sledge hammer things into submission.

      To err is human to really mess up you need a computer

      C Offline
      C Offline
      CPallini
      wrote on last edited by
      #2

      rnbergren wrote:

      At least with GOTO they don't know it exists

      Shhhhhhhhhhhhhhh, don't tell them. :rolleyes: goto is not bad at all.

      Veni, vidi, vici.

      1 Reply Last reply
      0
      • R rnbergren

        Seriously, The end users just love to say well just hardcode it to always work that way. At least with GOTO they don't know it exists. With Hardcoding they have heard it and the users like it because it sounds like a sledge hammer to them and they love to sledge hammer things into submission.

        To err is human to really mess up you need a computer

        B Offline
        B Offline
        BillW33
        wrote on last edited by
        #3

        End users typically don’t understand and misuse and abuse technical terms. A little knowledge is a very dangerous thing.

        Just because the code works, it doesn't mean that it is good code.

        1 Reply Last reply
        0
        • R rnbergren

          Seriously, The end users just love to say well just hardcode it to always work that way. At least with GOTO they don't know it exists. With Hardcoding they have heard it and the users like it because it sounds like a sledge hammer to them and they love to sledge hammer things into submission.

          To err is human to really mess up you need a computer

          M Offline
          M Offline
          Mark_Wallace
          wrote on last edited by
          #4

          It's like "OH MY GOD! THE NUCLEAR REACTOR'S GONE CRITICAL!!!" Um, yeah. That's when it produces the electricity.

          I wanna be a eunuchs developer! Pass me a bread knife!

          1 Reply Last reply
          0
          • R rnbergren

            Seriously, The end users just love to say well just hardcode it to always work that way. At least with GOTO they don't know it exists. With Hardcoding they have heard it and the users like it because it sounds like a sledge hammer to them and they love to sledge hammer things into submission.

            To err is human to really mess up you need a computer

            G Offline
            G Offline
            glennPattonWork3
            wrote on last edited by
            #5

            Off Topic my favourite goto label was hell, saw it in a code review //error handle goto HELL; still makes me chuckle!

            K 1 Reply Last reply
            0
            • G glennPattonWork3

              Off Topic my favourite goto label was hell, saw it in a code review //error handle goto HELL; still makes me chuckle!

              K Offline
              K Offline
              kalberts
              wrote on last edited by
              #6

              Reminds me of CHILL, the ITU standard language for programming digital phohe switches. The keyword EVER was defined for the FOR loop, so to set up an infinite loop (which makes perfect sense in telephone switch software), you wrote FOR EVER ...

              1 Reply Last reply
              0
              • R rnbergren

                Seriously, The end users just love to say well just hardcode it to always work that way. At least with GOTO they don't know it exists. With Hardcoding they have heard it and the users like it because it sounds like a sledge hammer to them and they love to sledge hammer things into submission.

                To err is human to really mess up you need a computer

                R Offline
                R Offline
                R_L_H
                wrote on last edited by
                #7

                GOTO was never the problem-- prevalent abuse of the keyword and poor code structure was the epidemic. Still, one tech writer writes an article calling a simple op-code "evil" and 30 years (or thereabouts) later we still think anyone using a GOTO command is a programming idiot. To this day, all tech writers must earn my respect before I trust what they write.

                B P 2 Replies Last reply
                0
                • R R_L_H

                  GOTO was never the problem-- prevalent abuse of the keyword and poor code structure was the epidemic. Still, one tech writer writes an article calling a simple op-code "evil" and 30 years (or thereabouts) later we still think anyone using a GOTO command is a programming idiot. To this day, all tech writers must earn my respect before I trust what they write.

                  B Offline
                  B Offline
                  BrainiacV
                  wrote on last edited by
                  #8

                  R_L_H wrote:

                  Still, one tech writer writes an article calling a simple op-code "evil" and 30 years (or thereabouts) later we still think anyone using a GOTO command is a programming idiot.

                  If GOTO is bad, why do all processors have them (jumps)? I always snarled whenever some idiot would proclaim that if it were in their power they would eliminate assembly language.

                  R_L_H wrote:

                  GOTO was never the problem-- prevalent abuse of the keyword and poor code structure was the epidemic.

                  I agree, I learned to program before structured code and GOTOs were necessary and I certainly spent time digging through code that loop-de-looped because either the programmer thought they were clever, didn't want to restructure the code, or were incompentent to begin with. See this[^], actual production code from a commercial database program from the 80's. Needless to say, we trashed that code as soon as we found it. The original programmer thought he was genius as evidenced by the thousands he was making a month in royalties.

                  Psychosis at 10 Film at 11 Those who do not remember the past, are doomed to repeat it. Those who do not remember the past, cannot build upon it.

                  1 Reply Last reply
                  0
                  • R R_L_H

                    GOTO was never the problem-- prevalent abuse of the keyword and poor code structure was the epidemic. Still, one tech writer writes an article calling a simple op-code "evil" and 30 years (or thereabouts) later we still think anyone using a GOTO command is a programming idiot. To this day, all tech writers must earn my respect before I trust what they write.

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

                    R_L_H wrote:

                    GOTO was never the problem-- prevalent abuse of the keyword and poor code structure was the epidemic

                    No tech writer ever told me it was evil. Nor did common knowledge. I know from personal, painful, first-hand experience. Things got a lot more manageable when function calls were invented, but by then GOTO had its bad reputation. And back before function calls, it wasn't abuse -- it was the only way to write a program.

                    We can program with only 1's, but if all you've got are zeros, you've got nothing.

                    1 Reply Last reply
                    0
                    • R rnbergren

                      Seriously, The end users just love to say well just hardcode it to always work that way. At least with GOTO they don't know it exists. With Hardcoding they have heard it and the users like it because it sounds like a sledge hammer to them and they love to sledge hammer things into submission.

                      To err is human to really mess up you need a computer

                      B Offline
                      B Offline
                      BotReject
                      wrote on last edited by
                      #10

                      I actually thought of a valid use for GOTO the other day - transliterating C64 code.

                      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