1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Hi Guest, welcome to the TES Community!

    Connect with like-minded education professionals and have your say on the issues that matter to you.

    Don't forget to look at the how to guide.

    Dismiss Notice

The Chronically Offended

Discussion in 'Personal' started by Vince_Ulam, Sep 20, 2018.

  1. lexus300

    lexus300 Star commenter

    OOOH I like that one;)
     
  2. lexus300

    lexus300 Star commenter

    EH!
     
  3. lexus300

    lexus300 Star commenter

    Savile row, of course.
     
  4. lexus300

    lexus300 Star commenter

    My iterations are offended by this.
     
    racroesus likes this.
  5. Vince_Ulam

    Vince_Ulam Star commenter

    I like a row as much as the next man.
     
  6. lexus300

    lexus300 Star commenter

    From Blackburn:)
     
  7. lexus300

    lexus300 Star commenter

    I prefer columns.
     
  8. lexus300

    lexus300 Star commenter

    I am just wondering when this topic will be blackballed by the mods:eek:
     
    EmanuelShadrack and Sir_Henry like this.
  9. irs1054

    irs1054 Star commenter

    Needs to be more relevant, such as:

    offended=TRUE
    REPEAT
    PRINT "I am offended"
    UNTIL NOT offended

    :D
     
    EmanuelShadrack likes this.
  10. racroesus

    racroesus Star commenter

    Adding 1 to each n.
     
  11. racroesus

    racroesus Star commenter

    What do we know about the next man?
     
  12. nomad

    nomad Star commenter

    I prefer sailing.

    (Hamlet preferred a scull)
     
    Last edited: Sep 21, 2018
    Geoff Thomas likes this.
  13. racroesus

    racroesus Star commenter

    Now we know.
     
  14. EmanuelShadrack

    EmanuelShadrack Star commenter

    Type it in and see what happens...
     
  15. lexus300

    lexus300 Star commenter

    Incrementing :cool:
     
    racroesus likes this.
  16. racroesus

    racroesus Star commenter

    No. I reckon I know it will fail.
     
  17. lexus300

    lexus300 Star commenter

    It is the data that needs 'tuning' first, I suspect;)
     
  18. racroesus

    racroesus Star commenter

    It will fail so there will be adjustments needed. Ideally it will be converted to two distinct classes each operating on some n from somewhere.
     
    lexus300 likes this.
  19. EmanuelShadrack

    EmanuelShadrack Star commenter

    I don't know what you lot are on about with the comments about the code.

    For starters, you've got a syntax error on the first line:

    For n = 1

    There's no (necessary) "To such-and-such"

    The Next statement is immediately afterwards, so the for-loops ends there. The value of n after that would be whatever the "To..." defined. It would be poor practice to use this value of n though. In C and C++, n would be out of scope at that point in the code (and hence a compile error, at best). Basic is more forgiving, but it's still poor practice.

    Then we increment this essentially-undefined value of n. OK, great. So what was the point of the For and Next? That was a rhetorical question, by the way.

    Then we've got a Return. For this to make any sense, you'd have to assume that the code in question has just been called from a Gosub. Even if this was indeed the case, it's hardly worth including it in the code snippet.

    I welcome all comments on the above. Comments from people who have been offended may very well be filed in my mental "Recycle Bin".
     
    nomad likes this.
  20. racroesus

    racroesus Star commenter

    I was wondering if there is a language that would allow that statement. Then Next n would take us out with n = 1 to which 1 is added. Then back to wherever with nothing available. Maybe it's just the start of something: the first strike of a pick in mining bitcoin?
     

Share This Page