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?

  • Bobo The Great@startrek.website
    link
    fedilink
    arrow-up
    15
    ·
    edit-2
    18 hours ago

    C is full of complex paradigms and low level details that are great if you’re learning computer architectures, but pretty bad if it’s your first languages.

    Python in the other hand is great to learn programming practices and for quick, non-optimized, easy scripts. I think it’s less suited for more complex projects, but that’s another thing. I honestly fon’t think it’s a great language, but it’s easy to use and has pretty much a library for everything, that’s why I think it’s good to start and for simple things.

    Java is also quite high level, so also good for beginners, but I’ve never used it so I don’t know how easy is to setup (python is) and how easy it is to download dependencies (on python it is).

    For your case I would say Python is best.