Oh Christ, I'm doomed....

Discussion in 'UK Motorcycles' started by Wicked Uncle Nigel, Sep 27, 2010.

  1. I generally dislike the use of short, un-descriptive variable names in
    programs.

    The code I'm working on has just such a failing. And I've just found one
    called "crn".

    <deletes source code>
     
    Wicked Uncle Nigel, Sep 27, 2010
    #1
    1. Advertisements

  2. Wicked Uncle Nigel

    Pete Fisher Guest

    Ha - A whole three characters! These fancy new pooters with lashings of
    RAM have spoiled you youngsters.

    In any case it's obviously 'Counts Random Numbers'.


    --
    +-------------------------------------------------------------------+
    | Pete Fisher at Home: |
    | Voxan Roadster Yamaha WR250Z/Supermoto "Old Gimmer's Hillclimber" |
    | Gilera GFR * 2 Moto Morini 2C/375 Morini 350 "Forgotten Error" |
    +-------------------------------------------------------------------+
     
    Pete Fisher, Sep 27, 2010
    #2
    1. Advertisements

  3. Wicked Uncle Nigel

    darsy Guest

    "for x = 1 to 100" [1]

    I'm a big fan of Hungarian Notation, myself.
    some twat will have it backed up...

    [1] I think I mentioned this before, but I once had to amend/debug
    some (DIBOL 83!!) code written by a bloke by the name of Dominic.

    Two related fragments remain with me for ever:


    SKIPPYTHEBUSHKANGAROO = TRUE

    FOR DOM FROM 1 THRU 2352
    IF DOM = 1234 AND SKIPPYTHEBUSHKANGAROO IS TRUE ; A
    TRUE FRIEND!
    GOSUB DOM

    .... (a few hundred lines later)

    SUBROUTINE DOM
    ; DOM IS VERY COOL
    RETURN
     
    darsy, Sep 27, 2010
    #3
  4. Using the patented Mavis Beacon "Hunt&Peck" Technique, Pete Fisher
    I wrote my last memory segmented program about thirty years ago.

    I do not miss it.
     
    Wicked Uncle Nigel, Sep 27, 2010
    #4
  5. Wicked Uncle Nigel

    prawn Guest

    You see what happens when you use constantly rong nomenclature?
     
    prawn, Sep 27, 2010
    #5
  6. Wicked Uncle Nigel

    darsy Guest

    yes.
     
    darsy, Sep 27, 2010
    #6
  7. Wicked Uncle Nigel

    Jim Guest

    We had one a while back from a contractor:


    int iFlash; // Aaa-aahh!

    for (i=0; i< MAX; i++)
    {
    iFlash = 0; // The saviour of the universe!
    }

    etc.
     
    Jim, Sep 27, 2010
    #7
  8. Not 'Clueless Rambling Numpty' ?
     
    stephen.packer, Sep 27, 2010
    #8
  9. Wicked Uncle Nigel

    CT Guest




    Somewhere there's some source code of mine that has:

    double gin_and_tonic = 0.0;


    Jeez, I crack me up sometimes.
     
    CT, Sep 27, 2010
    #9
  10. Wicked Uncle Nigel

    darsy Guest



    when I used to write 6502 machine code[1], I would try and write
    opcode sequences that functioned, but also so that the ASCII values of
    the codes spelled out things like "bum" and "poo". etc.

    Hey, I was 14 - what's your excuse?

    [1] I mean, really - I was nerdy enough to be able to write actual
    machine code[2] rather than some poof's wishy-washy language like
    assembly.
    [2] could do Z80 too, but 6502 was my favourite.
     
    darsy, Sep 27, 2010
    #10

  11. BBC micro/Acorn Electron?

    Or Nascom (I guess for Z80).
     
    stephen.packer, Sep 27, 2010
    #11
  12. Wicked Uncle Nigel

    Jim Guest

    You've just reminded me of the physics lesson I had when I was about 12
    using some kind of an electronic counter thing with a 7-segment display.
    The worksheet featured the question "What letters can the display show?
    Can you spell out any words with these letters?"

    Walked right into that one we did.
     
    Jim, Sep 27, 2010
    #12
  13. Wicked Uncle Nigel

    darsy Guest

    Acorn *Atom*
    nope - Sinclair ZX81, then the Speccy.
     
    darsy, Sep 27, 2010
    #13


  14. You might like this: http://www.visual6502.org/
     
    David Johnston, Sep 27, 2010
    #14

  15. Hmm... should have remembered the sinclair devices. And the Atom, well
    I vaguely remember it. Problem is every memory from 1980 is pretty
    vague.
     
    stephen.packer, Sep 27, 2010
    #15
  16. Wicked Uncle Nigel

    darsy Guest

    they were rubbish, but hugely popular. Until the horrible
    collaboration with ICL.
    oh, mine too.
     
    darsy, Sep 27, 2010
    #16
  17. Wicked Uncle Nigel

    darsy Guest

    la la la la - I'm not listening.
     
    darsy, Sep 27, 2010
    #17
  18. Wicked Uncle Nigel

    davethedave Guest

    into those surely.
     
    davethedave, Sep 27, 2010
    #18
  19. Wicked Uncle Nigel

    Pip Luscher Guest

    My first machine-code-level programming was on a mate's ZX spectrum,
    created by poking op-codes into RAM, based largely on guesses on what
    they did exactl.y. The Spectrum manual had a list of the opcode
    mnemonics, IIRC, which was how I figured it out.

    The first program that actually ran, filled the screen with vertical
    blue & white stripes in an eyeblink, though that's *all* it did. I was
    very chuffed.

    Lost interest after that; mentally exhausted.
     
    Pip Luscher, Sep 27, 2010
    #19
  20. Wicked Uncle Nigel

    Jeweller Guest

    What about the QL?

    --
    R100RT
    Aprilia Pegaso 650 IE "The Flying Mythos"
    Formerly: James Captain, A10, C15, B25, Dnepr M16 solo, R80/7, R100RT
    (green!)
    www.davidhowardjeweller.co.uk
     
    Jeweller, Sep 27, 2010
    #20
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.