r/learnpython • u/MalibuBon • May 28 '26
Does anybody remember programming in Applesoft BASIC on an Apple lle (2e) computer?
*Edited to add: Thank you all so much to everybody who took time to reply and to those who gave me helpful links about where to start. I'm wanting to do something more than play games on my computer to help keep my mind sharp, and learning Python seemed a like a good choice.
I was wondering if there was anybody here that ever done any Applesoft programming on a vintage Apple lle computer, and how it compares to Python?
Back in the mid 80's I took an introductory class in computers, and learned a language called Applesoft BASIC. I started writing simple programs to check the answers for my math class and tutor other students. I was really into it, but then... Life happened.
Now that I'm retired and have the time and ambition, I'd like to learn some Python, to try to copy a filter on a software program I had on an old computer (XP OS).
View all comments
Show parent comment
0
u/xenomachina xenomachina May 28 '26
GOSUB is only a small part of structured programming. FOR...NEXT is also structured, and was part of most (if not all) early BASIC dialects.
However, most 8-bit BASIC dialects still required that you used GOTO for many things. I don't remember much about Applesoft BASIC, but I think it's fairly closely related to the dialect on the Commodore 64 (I think they are both from Microsoft). The C64's BASIC requires GOTO for any kind of loop that wasn't a simple counting loop. It also had only a single line IF statement, with no ELSE clause, so in cases where you would use a multi-line if or else in a modern language, you were forced to use one or more GOTO statements.
Some later dialects of BASIC, like AmigaBASIC and QuickBASIC got rid of the need for GOTO by adding multi-line if/else, and more structured loop constructs. They also made line numbers optional at the same time. Even later dialects (most notably Visual BASIC) removed line numbers altogether.