I taught myself programming in the middle 1970s in BASIC. The only source of knowledge I had access to was BASIC Computer Games. In my junior year of high school, 1977-1978, I took the BASIC programming class they offered.
Through a time-sharing arrangement with a local manufacturer, we had access to their mainframe through a pair of TTY terminals and an optical card scanner. The terminals had a limited amount of storage, and a paper tape machine bolted to the side. With the terminal in “offline” mode, you’d type in the program and save it. Then you could cause it to print on the paper tape. Next you’d sign into the remote computer and read the paper tape, which appeared to the remote computer as you typing at a steady 10 words-per-minute.
Sometimes we used the cards. Without a card punch, we used a #2 pencil and filled in the Baudot code for each character. The reader was fickle, it didn’t do well reading a stack of cards automatically, so you (or someone) had to sit at the machine and repeatedly press the “scan” button. In my senior year, I spent one period each day as the computer lab assistant. Most of that time was spent scanning cards for the students taking the programming class.
Also in my senior year I talked my way into a community college COBOL programming course. I, and one other high school student, were the youngest students in the class by far. The rest of the students were adults looking for a new career.
In my college programming classes I used COBOL, PL/1, and Assembly. The university didn’t have a relational database, so we did the relational database class on a chalkboard, drawing the tables and relationships.
College was the end of my formal education, all the knowledge I’ve gained since then was from people I worked with, or from self discovery. While I have had some training over the years, the vast majority of what I know I learned on my own.
Over time I learned Ruby, Python, a little Java, HTML, and CSS, among others. More recently I learned Go programming, and currently I am teaching myself Rust programming.
The programming I learned in school, and that I used for years, relied heavily upon internal data structures, ones that you constructed and manipulated through code you wrote. If you needed to work with a list of values, you made an array, and you wrote a loop to walk the array. Many times the data was in a file, indexed or otherwise, so the manipulation was record by record as the program input the file. You wrote the file I/O code as well.
The pieces of Go, and now of Rust, that I am the least familiar with are the ones designed to do those kinds of manipulation for you. Structures like HashMaps or Vecs, that have functions to sort, collect, reduce, and so on. When I am presented with a problem that requires finding the largest or smallest values in a collection of data, I mentally reach for the “how to build an array and loop through it” manual in my head.
Without an oral tradition to lean upon (I don’t use Rust at work) learning about iterators and map and collect, takes time. Lots of trial and error. I can make my old-fashioned array and loop work, and produce the correct results. But if I feed my code to an AI and ask for the idiomatic solution, what I get back is vastly different.
I was an indifferent student, even sometimes about the subjects I liked. If you had told my 22 year old self that I would still be learning new programming languages and tricks 40 plus years later, I’m not sure I would have believed you. That I can still learn new tricks, new paradigms, new languages, thrills me. Teaching myself Rust today tickles the same parts of me that teaching myself BASIC 50 years ago tickled.
Hmm, maybe I should find an online copy of BASIC Computer Games, and recreate some of my favorites (Star Trek, anyone?) using Rust.