My latest fun project is a BASIC interpreter called
Acidica. Classic BASIC is an
old-school language first developed in 1964 that saw an explosion of
implementations on microcomputers in the ‘70s and ‘80s. It’s much more primitive
than the Visual Basic that you might be familiar with.
A simple BASIC program:
10INPUT"What is your name";U$ 20PRINT"Hello ";U$ 30INPUT"How many stars do you want";N 40S$="" 50FORI=1TON 60S$=S$+"*" 70NEXTI 80PRINTS$ 90INPUT"Do you want more stars";A$ 100IFLEN(A$)=0THEN90 110A$=LEFT$(A$,1) 120IFA$="Y"ORA$="y"THEN30 130PRINT"Goodbye ";U$ 140END
Keep reading
Out of respect for the author only the opening is shown here. Read the rest on the original site, or in HorizonReader with highlights, notes and AI help.
“Human sorting” is sorting strings (usually file names) so that any numbers in the names come out in the right order. For example, “file10.txt” should come after “file2.txt”, but regular sorting will put them in the wrong order. I’ve writte
Today is Nat’s 37th birthday. We went to his group home yesterday to celebrate. One of Nat’s favorite things to do when he’s with us is to bake with Susan. So we had a baking party at his house to get everyone into the activity: At our hous
Because I’ve been writing this blog for so long, I often share links to very old posts. Three years ago, I added a feature: if the post is more than five years old, there’s a message next to the dateline indicating the age. The age descript
Frank Wiles wrote about an attack he nearly fell victim to: a downloaded git repo had active git hooks that would have compromised his system. Seeing the risks, I wanted to make git hooks more visible on my own machine. A git hook is a scri
Watching discussions happening online, I see a frequent unfortunate tic I’ll call the Expert Asterisk. A beginner is asking for help, and experts are answering. Then in the spirit of completeness, an expert throws in a fact or detail far fr