🔒 Locked
BASIC appreciation thread
Advertisement
Original Post
For some of us, BASIC in form or another was the way we broke into programming. For some of us, BASIC is as far as we ever got. Either way, despite its 'sandbox' limitations, its user-friendly-ness and ease of use left its mark on many of us. 10 PRINT "BASIC, I SALUTE YOU" 20 PRINT "" 30 GOTO 10 edit: the numlines were there for sheer oldskool appeal. I grew up on QBasic.
The greatest day of my life was when I realized that somebody along the line was smart enough to realize how useless those line numbers were, and that by the time I discovered QBasic they were pointless.
0000
What would happen if you did this:
10 PRINT "10"
30 PRINT "30"
20 PRINT "20"
Syntax error, "10 20 30", or "10 30 20"?
*edit: To be clear, I was pretty proficient in BASIC before I discovered that line numbers were useless. Eventually, I stopped spacing them by ten, and started spacing them by 50, because 10 just wasn't cutting it. But I don't recall what out of order numbers did...[frown]
CM
0000
What would happen if you did this:
10 PRINT "10"
30 PRINT "30"
20 PRINT "20"
Syntax error, "10 20 30", or "10 30 20"?
*edit: To be clear, I was pretty proficient in BASIC before I discovered that line numbers were useless. Eventually, I stopped spacing them by ten, and started spacing them by 50, because 10 just wasn't cutting it. But I don't recall what out of order numbers did...[frown]
CM
Quote:(Edit: my answer is in TI-BASIC.) It would do nothing until you type "RUN", and then it will give "10 20 30" with carriage returns in between! :) Then, when you type "LIST", it would list the program in proper order.
Original post by Conner McCloud
What would happen if you did this:
10 PRINT "10"
30 PRINT "30"
20 PRINT "20"
Syntax error, "10 20 30", or "10 30 20"?
CM
see signature.
BTW, I used to program in METAL BASIC on my old mac a long time ago, and THAT was GREAT! Thats the most fun I've ever had with BASIC (although I didn't get too far because I didn't have a clue what I was doing and eventually switched to pc anyway).
BTW, I used to program in METAL BASIC on my old mac a long time ago, and THAT was GREAT! Thats the most fun I've ever had with BASIC (although I didn't get too far because I didn't have a clue what I was doing and eventually switched to pc anyway).
Quote:
Original post by Matthew Doucette
Nothing until you type "RUN", and then it will give "10 20 30" with carriage returns inbetween! :)
That's what I figured, but don't recall if I'd ever tried it. Thanks.
CM
I really like TI-Basic (TI-89 Basic, specifically; it's much better than older versions). I never messed with "regular" (PC) basic, but TI-Basic works very well for math and very basic graphics things. I can fairly quickly throw a simple game together, and I can easily solve math problems that are far harder to represent in lower-level languages.
It doesn't have line numbers like many older BASIC variations, and the syntax is a bit more comprehensible to C programmers. Here's a quick sample: (-> is one character)
If you couldn't tell, that's the inner loop of a program to graph the mandelbrot set.
It's really simple and convenient to have a language right on the calculator.
It doesn't have line numbers like many older BASIC variations, and the syntax is a bit more comprehensible to C programmers. Here's a quick sample: (-> is one character)
x+y*i(imag character)->zFor iter,1,100z^2+c->zIf abs(z)>2 ThenPtOn x,yExitEndIfEndForIf you couldn't tell, that's the inner loop of a program to graph the mandelbrot set.
It's really simple and convenient to have a language right on the calculator.
I'm seem to remember case not mattering in Basic, so it isn't angry, just insensitive.
i actually still use it at school when i'm bored.. there used to be a general programming class offered, but it was cancel'd when the teacher who taught it moved. I freak other students out when I make it look like I am destroying the computer.. Random lines of color and internal speakers [smile]
Truly, I love BASIC and BASIC loves me. I think I stuck with BASIC for way too long... Back in early high-school, I used QBasic on our Pentium-90 to make an RTS with pathfinding, fifteen different units with animations (drawn one pixel at a time in my own world editor) plus buildings, AI that would build a base and attack (but definitely cheated in terms of knowing what you had), and huge maps with a campaign of some 10 levels. Quest-based levels, domination, whatever. I hit the upper limit of QBasic, actually. I got an EMS driver that I could use with QBasic to get my big maps in memory. And a sound-card library, BWSB I think it was called. Although I eventually dropped the sound in favor of bigger maps. The source was too big for QB4.5 to compile, so I wrote another program to parse my original source code, take out all comments and rename variables to minimal lengths, and remove all whitespace. Then QB4.5 just *barely* could compile it. Of course I never decided to figure out how modular coding worked back then. I wonder if I can dig that old dinosaur up here somewhere...
Oh, the glory days. BASIC's a thing of the past now, of course, except for boring work projects involving VB.NET (if you can call that BASIC).
~BenDilts( void );
Oh, the glory days. BASIC's a thing of the past now, of course, except for boring work projects involving VB.NET (if you can call that BASIC).
~BenDilts( void );
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement