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. Other Discussions
  3. The Weird and The Wonderful
  4. Classic literature still relevant

Classic literature still relevant

Scheduled Pinned Locked Moved The Weird and The Wonderful
algorithmsoop
4 Posts 4 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.
  • M Offline
    M Offline
    MClancy
    wrote on last edited by
    #1

    Sigh...read this (again): http://www.cs.utexas.edu/~EWD/ewd02xx/EWD215.PDF[^] Note that Dijkstra is speaking specifically about "higher level" languages. Assembly level code will never dispense with the goto statement, because it maps directly to the machine JMP instruction. Very efficient. But this can't justify their use in a higher-level language. Hhigher-level programs should represent complex logic through abstraction. In OO languages, complexity in a method is usually an indication that the object model should be refactored...without using goto.

    P 1 Reply Last reply
    0
    • M MClancy

      Sigh...read this (again): http://www.cs.utexas.edu/~EWD/ewd02xx/EWD215.PDF[^] Note that Dijkstra is speaking specifically about "higher level" languages. Assembly level code will never dispense with the goto statement, because it maps directly to the machine JMP instruction. Very efficient. But this can't justify their use in a higher-level language. Hhigher-level programs should represent complex logic through abstraction. In OO languages, complexity in a method is usually an indication that the object model should be refactored...without using goto.

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

      Why post that here?

      K 1 Reply Last reply
      0
      • P PIEBALDconsult

        Why post that here?

        K Offline
        K Offline
        KP Lee
        wrote on last edited by
        #3

        Well, that was the biggest bunch of tripe spouted as an erudite document that I've read since college. That's worth the hall of shame all by itself. It's stored as images when HTML text would be much more readable, manageable, and condensed in storage costs to boot. This guy is using circular logic to justify not supporting the GOTO command, which I found ironic. They copyrighted something that anyone should be ashamed to claim as their own. Spell-checkers have been around forever, I'd have thought a professor might have found one by now. I have to admit that I started hating GOTOs several decades ago when I read one tome without a single comment in it and as near as I could tell about a third of the code was dead code. I'm predisposed to like a document that advocates this concept and I didn't see one valid argument given. Says it produces errors, which I've seen firsthand, but doesn't explain why they are produced. The only reason you'd need to re-read it, is if you are searching (again) for its logic. I kind of liked the original poster posting it like it is a document worth reading, but puts it in the hall of shame. Eliminating GOTO statements deserves a well written document. That wasn't it.

        S 1 Reply Last reply
        0
        • K KP Lee

          Well, that was the biggest bunch of tripe spouted as an erudite document that I've read since college. That's worth the hall of shame all by itself. It's stored as images when HTML text would be much more readable, manageable, and condensed in storage costs to boot. This guy is using circular logic to justify not supporting the GOTO command, which I found ironic. They copyrighted something that anyone should be ashamed to claim as their own. Spell-checkers have been around forever, I'd have thought a professor might have found one by now. I have to admit that I started hating GOTOs several decades ago when I read one tome without a single comment in it and as near as I could tell about a third of the code was dead code. I'm predisposed to like a document that advocates this concept and I didn't see one valid argument given. Says it produces errors, which I've seen firsthand, but doesn't explain why they are produced. The only reason you'd need to re-read it, is if you are searching (again) for its logic. I kind of liked the original poster posting it like it is a document worth reading, but puts it in the hall of shame. Eliminating GOTO statements deserves a well written document. That wasn't it.

          S Offline
          S Offline
          SASS_Shooter
          wrote on last edited by
          #4

          Well, that "tripe" was written by Dr. Dijkstra who is considered to be the father of programming languages and much of the framework of what we call computer science today. If you actually read the beginning it was also written in 1968, on a typewriter. You ever seen one, child? There is no spell checker on an IBM Selectric. I also have seen developers today utilize GOTO: in C# which makes me shudder!

          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