54

Bob Newby from Stranger Things is such a badass BASIC hacker :O

Comments
  • 6
    His variable is pascal case but his functions are camel case.

    Dig the indents though, looks nice.
  • 7
    Who indented basic in the 80s? 😄
  • 8
    @nbamaral never with line oriented basic, you where limited to max 255 chars per line. But the program is not really fake, it will brute force all four digit passwords accurately ;)

    And in the time basic was written like this it would probably crack a lot of them ;P
  • 2
    @runfrodorun @Voxera
    I had a little zx spectrum and used a XT with rom basic, I'm that old 😊
    But looks nicer yes
  • 2
    @runfrodorun
    Always wanted to get my hands on one, only managed to find ps/2
  • 2
    @runfrodorun
    I've stopped buying old stuff, because it's pain to move them, but most of it was IBM (mainly thinkpads)
    Now I've discovered the existence of the only black model (m13) and it's hitching me again 😄
  • 1
    This is why I love devrant
  • 1
    Ohhhhh dear.
  • 2
    It's a goto in a bunch of loops ..... Wtf???
  • 3
    @ewpratten its the escape when finding the correct answers one.

    Goto out of loops are perfectly valid and in basic’s for loops the best way.

    The only other option would be to manually set the loop variable to the max value which is more code and more prone to errors.

    Under the hood goto is still used in for example c#.

    Found that yield for iteratiors are rewritten with a goto “into” the middle of a loop ;). Bite on that :D
  • 0
    That trailing line at the end...
  • 2
    @Agusyc target for the goto 140
  • 0
    @Voxera Oh! Right. With BASIC you can use the line number as the argument for the GOTO. lol
  • 1
    Can we talk about the fact that the code is falling off of the actual computer screen 😂
  • 2
    @iSwimInTheC wow.. that last letter is on the border.
  • 0
    @runfrodorun
    I will :)
  • 1
    Not even a REM instruction? That's bad practice!

    Also the indentation of the GOTO is too deep.

    And BTW, I agree with @nbamaral, I don't remember indentation in basic programs in the 80s!
Add Comment