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?

    • communism@lemmy.mlOP
      link
      fedilink
      arrow-up
      1
      ·
      13 hours ago

      The problem with Scratch is that you don’t learn very much about computers with it. When I expressed I wanted to learn programming as a kid, I was directed to Scratch, and the whole time I was like “ok this is fun and cool, but when do I get to the real programming. I want to make an ‘actual program’.” You’d learn about how programming works on a very high level but you don’t learn much about how things work “under the hood” which imo is the fun thing about learning to program.

      The best way I can articulate my goal is like how it feels to watch an edutainment video (think VSauce/Veritasium/Numberphile/etc)—you get a peek at some topic you didn’t know about before and feel you understand how the world works a bit better. It’s not the same thing as training someone up to be an expert, i.e. I’m not trying to turn these people into programmers (though if they’re interested enough they can of course go away and pursue that in their own time).

      • a_jackal@pawb.social
        link
        fedilink
        arrow-up
        3
        ·
        12 hours ago

        I’d also recommend something like scratch. If these people are non-technical as you say, they might not understand the concepts of directories on a computer, zipped files and so on. You’d be risking spending your teaching time troubleshooting the setup process and losing their interest before they ever get to write a line.

        Of course that’s just based on how I interpreted your post, you know best their potential skill level.