I’m going to be delivering an online intro to programming session to a non-technical crowd who will be “following along at home”. Because it’s online, I can’t provide them with machines that are already set up with an appropriate development environment.
I’m familiar with Linuxes and BSDs but honestly have no idea how to get set up with programming stuff on Windows or macOS which presumably most of these people will use, so I need something I can easily instruct them on how to install, and has good cross-platform support so that a basic programming lesson will work on whatever OS the attendees are running. Remember they are non-technical so may need more guidance on installation, so it should be something that is easy to explain.
My ideas:
-
C: surely every OS comes with a C compiler pre-installed? I know C code is more platform-specific, but for basic “intro to programming” programs it should be pretty much the same. I think it’s a better language for teaching as you can teach them more about how the computer actually works, and can introduce them to concepts about memory and types that can be obscured by more high-level languages.
-
Python: popular for teaching programming, for the reasons above I’d prefer not to use Python because using e.g. C allows me to teach them more about how the computer works. You could code in Python and never mention types for instance. Rmemeber this is only an intro session so we’re not doing a full course. But Python is probably easy to install on a lot of OSes? And of course easy to program in too.
-
Java: good cross-platform support, allows for teaching about types. Maybe a good compromise between the benefits outlined above for C and Python?
Any opinions?


I would suggest taking a look at Scheme or Clojure for somebody who has no development experience. The big reasons being that these are high level languages so you can focus on learning the actual concepts without all the incidental complexity of imperative languages. Scheme in particular was designed as a teaching language. The other aspect is interactivity, Lisps have a tight integration between the editor and the REPL and you can evaluate functions as you write them. This is incredibly helpful for learning as you can write a function, send it for evaluation, and see the result immediately. So you can play with code and get an intuition for how things work.
Speaking of Scheme, I would suggest Racket, which comes battery included and ready to go in ONE installer. Easy to install on any system, and has a decent text editor/IDE provided. Also, the documentation is great, but can be daunting at first.
Seconded, I should’ve just said Racket really.
My university chose to teach a pure functional lisp-like language without for loops as they very first programming course in the computer science program lol. Everyone who “already knew” how to program in Python/Java/JS/etc hated it (including me at the time) because it knocked us from the peak of the Dunning-Kruger curve into the valley of despair like everyone else.
Took me years to understand the method to the madness and appreciate learning it.
It’s very frustrating to be in a situation where you know how to do something one way, but you can’t do it like that and you have to learn a completely different way to do it. Feeling like a beginner again makes people feel stupid, and most people don’t like that. But it really just means you’re learning a new way to approach problems.
That’s a really interesting suggestion. I’ve not used either. I had the impression that those languages are kinda esoteric, but maybe I’ll have a look.
While they’re far from mainstream, they’re definitely languages worth learning. And I’d argue that learning functional style first gives you a much better intuition regarding state management which makes you a better imperative programmer as a result. It’s much easier to go from functional to imperative than the other way around.
I mostly work with Clojure myself, and it’s pretty easy to set up with VSCode and Calva plugin. There’s also a lightweight runtime for it that doesn’t require the JVM which is great for a learning set up. You just run
bb --nrepl-serverand then connect the editor to it as shown here. From there on you can run code and see results right in the editor. This is a good overview of what the workflow looks like in practice.Also have some beginner resources I’ve used to train new hires on Clojure.
Introductory resources
A deeper dive