Wednesday, February 9, 2011

TO BE EMBEDDED IN ALOTT5MA SOURCE CODE:

10 IF ("musical" + "cast" + ("she" or "her")) THEN GO TO 40
20 IF ("musical" + "cast" + ("he" or "him")) THEN GO TO 60
30 GO TO 80
40 PRINT "Anne Hathaway"
50 GO TO 20
60 PRINT "NPH"
70 GO TO 80
80 END
RUN

This may save you all some time.

35 comments:

  1. isaac_spaceman4:49 PM

    I might actually need to remove "musical" from line 20. 

    ReplyDelete
  2. Marsha4:51 PM

    I miss BASIC.

    ReplyDelete
  3. isaac_spaceman6:12 PM

    And it occurs to me that I don't need line 70 at all.

    ReplyDelete
  4. Jenn.6:23 PM

    I thought it was a rule of BASIC programming that there be at least one unnecessary line?

    ReplyDelete
  5. Anonymous6:51 PM

    I thought the rule was "Oscars considered harmful"?

    ReplyDelete
  6. spacewoman7:33 PM

    Query: How many young 'uns reading this blog do not recognize this format? 

    ReplyDelete
  7. calliekl7:38 PM

    I don't know if I can be considered a young un at 29, but I have no idea what that means.

    ReplyDelete
  8. The Pathetic Earthling8:15 PM

    At age 11, the height of wit for me was going to the Radio Shack at Sunvalley Mall and getting on their display computers. 

    10 PRINT "TRASH 80 SUCKS!'
    20 GOTO 20

    ReplyDelete
  9. Anonymous8:58 PM

    http://www.thebigjewel.com/thesubroutinenottaken/

    ReplyDelete
  10. Ditto.  Exactly what I was going to post.

    ReplyDelete
  11. Lurker David10:37 PM

    That's more depressing than having a "young'un" chime in.

    ReplyDelete
  12. I don't recognize it.  (Sorry guys, I feel like 90% of my comments have the effect of making you all feel old...)

    ReplyDelete
  13. sconstant11:12 PM

    The error handling here is abysmal, and I'm not sure what you're after concatenating those strings and then evaluating the result for truth.  Also, it's GOTO, like Goto Dengo, not GO TO, like Harold and Kumar and White Castle. 

    ReplyDelete
  14. Tosy and Cosh11:26 PM

    I'm 36 but never saw Basic. We did that "move the turtle" program in high school, and I took a programming class in college I have literally zero memory of (not Basic, whatever engineers use), and that's it.

    ReplyDelete
  15. I'm 36 and remember learning BASIC in 7th Grade computer science class. In High School I kind of learned another computer language...but really I learned it pays to date a guy who likes computers and will do the programming for you. 

    ReplyDelete
  16. Paul Tabachneck12:38 AM

    http://www.glarkware.com/adult/i-rock-at-basic

    ReplyDelete
  17. spacewoman2:35 AM

    TRS-80?  What were you, fancy?  Vic-20 here.

    ReplyDelete
  18. isaac_spaceman2:36 AM

    I do love the Goto Dengo.  Remember to drill the resting holes so you don't get the bends!

    ReplyDelete
  19. Becca2:38 AM

    Thank G-d for my computer geek brother who taught me, way back in the 5th grade, how to make my name go across the screen DIAGONALLY on the old Apple IIE. I KNOW. It ruled. I was SO COOL for at least 10 minutes or so.

    ReplyDelete
  20. Paul Tabachneck7:55 AM

    My claim-to-brief-fame was knowing how to use the "poke" command to make a C64 do a strobe effect in a dark room.  Dance party in the classroom, y'all!

    ReplyDelete
  21. Roger9:11 AM

    Isn't this whole thing just equivalent to:

    <span>10 IF ("musical" + "cast" + ("she" or "her")) THEN PRINT "Anne Hathaway"
    20 IF ("musical" + "cast" + ("he" or "him")) THEN PRINT "NPH"
    30 END
    RUN
    </span>

    ReplyDelete
  22. spacewoman10:04 AM

    You were my target audience with my comment, Maddy.  And don't feel bad, we are old!

    ReplyDelete
  23. tortoiseshelly10:29 AM

    Ahh, we had a TRS-80. My dad was a Radio Shack junkie.

    ReplyDelete
  24. Marsha10:35 AM

    I learned how to program on TRS-80s. My first home computer was a TRS-80 Color Computer 2, received as a gift for my bat mitzvah. It was affectionately known in my house as "CoCo." I wrote a program in basic to make two dice show up on the TV screen it was attached to that would "roll" when you pressed the space bar. Sue and I used to play board games using those dice.

    And programs were stored on a cassette tape. Those were the days!

    ReplyDelete
  25. Vic-20, b/w tv as the monitor, cassette drive *and* the Super Expander cartridge providing 3KB of extra RAM.

    ReplyDelete
  26. patricia11:15 AM

    I remember my dad spending HOURS typing in the program that, when finished, would make whatever tiny computer thing he had (it hooked up to a TV as a monitor) accurately add and subtract.  But only up to, like, 20.  We all thought it was the NEATEST. THING. EVER.  Later we got a Commodore 64, which was extra-special because we had one in our home, where everyone else just had to use the ones at school.  I could play all the Oregon Trail my little heart desired.

    I was taught BASIC in my elementary school gifted classes, but they also taught me about punch cards, and not in a "this was the forerunner of modern computing" kind of way.  So, maybe not the most cutting edge, even for 1985. 

    ReplyDelete
  27. Paul Tabachneck11:16 AM

    C-64, with the 1541 floppy disc drive.   We briefly had a PET, but that didn't stick around very long.  Ah, Radar Rat Race.... Those were the days.

    We also had This little number....

    ReplyDelete
  28. Genevieve11:41 AM

    That Kaypro is what I took to college!  "Portable," they called it.  Hah.

    ReplyDelete
  29. Genevieve11:43 AM

    I learned to program BASIC in a gifted summer program in 1985.  Yeah, that's been a useful skill.

    We had the punch cards in class in 1980, but I don't think I ever saw any after that.

    ReplyDelete
  30. Oh my god, I had totally forgotten about the TRS-80.  (But not the GOTO commands of Basic.)  I had thought our first home computer was the Apple IIE!

    ReplyDelete
  31. Genevieve2:20 PM

    I got mine used (yes, I went to college with a USED Kaypro) and it didn't have the games.  But the disks themselves were a big flashback, as was looking at the tiny screen and the big hulking body of the thing.  Can't believe how many papers I wrote on that.  That's pre-DOS, kids.
    But that made me search, and this one did blow my mind:  http://www.youtube.com/watch?v=981AIZzlZag&playnext=1&list=PL8B67D809FFB58911
    Another one described is as "luggable," rather than portable, which is about right.


    I left it at college (after I got a much more modern computer senior year, thank goodness).  I think the motherboard ended up in someone's lab homework.

    ReplyDelete
  32. Jenn.3:17 PM

    Speak for yourself, spacewoman.

    ReplyDelete
  33. Paul Tabachneck3:39 PM

    I wasted a lot of time playing Ladder.

    A lot.

    ReplyDelete
  34. gtv20004:39 PM

    <span>I learned to program BASIC in a gifted summer program in 1967.  Yes, that's what I did during the "Summer of Love".
    </span>

    ReplyDelete
  35. The Pathetic Earthling10:40 AM

    We had an Apple ][+, Mrs Earthling had an honest-to-got Commodore PET!  In her house!  I'd kill to see that again.

    ReplyDelete