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.
I might actually need to remove "musical" from line 20.
ReplyDeleteI miss BASIC.
ReplyDeleteAnd it occurs to me that I don't need line 70 at all.
ReplyDeleteI thought it was a rule of BASIC programming that there be at least one unnecessary line?
ReplyDeleteI thought the rule was "Oscars considered harmful"?
ReplyDeleteQuery: How many young 'uns reading this blog do not recognize this format?
ReplyDeleteI don't know if I can be considered a young un at 29, but I have no idea what that means.
ReplyDeleteAt age 11, the height of wit for me was going to the Radio Shack at Sunvalley Mall and getting on their display computers.
ReplyDelete10 PRINT "TRASH 80 SUCKS!'
20 GOTO 20
http://www.thebigjewel.com/thesubroutinenottaken/
ReplyDeleteDitto. Exactly what I was going to post.
ReplyDeleteThat's more depressing than having a "young'un" chime in.
ReplyDeleteI don't recognize it. (Sorry guys, I feel like 90% of my comments have the effect of making you all feel old...)
ReplyDeleteThe 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.
ReplyDeleteI'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.
ReplyDeleteI'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.
ReplyDeletehttp://www.glarkware.com/adult/i-rock-at-basic
ReplyDeleteTRS-80? What were you, fancy? Vic-20 here.
ReplyDeleteI do love the Goto Dengo. Remember to drill the resting holes so you don't get the bends!
ReplyDeleteThank 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.
ReplyDeleteMy 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!
ReplyDeleteIsn't this whole thing just equivalent to:
ReplyDelete<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>
You were my target audience with my comment, Maddy. And don't feel bad, we are old!
ReplyDeleteAhh, we had a TRS-80. My dad was a Radio Shack junkie.
ReplyDeleteI 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.
ReplyDeleteAnd programs were stored on a cassette tape. Those were the days!
Vic-20, b/w tv as the monitor, cassette drive *and* the Super Expander cartridge providing 3KB of extra RAM.
ReplyDeleteI 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.
ReplyDeleteI 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.
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.
ReplyDeleteWe also had This little number....
That Kaypro is what I took to college! "Portable," they called it. Hah.
ReplyDeleteI learned to program BASIC in a gifted summer program in 1985. Yeah, that's been a useful skill.
ReplyDeleteWe had the punch cards in class in 1980, but I don't think I ever saw any after that.
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!
ReplyDeleteI 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.
ReplyDeleteBut 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.
Speak for yourself, spacewoman.
ReplyDeleteI wasted a lot of time playing Ladder.
ReplyDeleteA lot.
<span>I learned to program BASIC in a gifted summer program in 1967. Yes, that's what I did during the "Summer of Love".
ReplyDelete</span>
We had an Apple ][+, Mrs Earthling had an honest-to-got Commodore PET! In her house! I'd kill to see that again.
ReplyDelete