3 ms·
I think which language to teach is getting into the weeds a bit, but imo python is the right language to start with because it's so straightforwards. There's no
by fragmede 3y ago
I think which language to teach is getting into the weeds a bit, but imo python is the right language to start with because it's so straightforwards. There's no pointers like C or anonymous functions/await in JavaScript to learn. once there is some confidence, more advanced concepts can be introduced, but there needs to be a solid foundation first.
JavaScript makes for a great diving off point though. Have the class open a webpage on their laptops, then open the developer console, type in some JavaScript, and do a thing to the page they're on. Choose the right thing and the kids will be hooked on programming.
- dimmke 3y agoI mean how does Python handle asynchrony? Callbacks? I’m not sure if that’s really better. I think my issue with it is where is Python widely actually used by programmers? It mostly seems popular with data science people. So it just feels like choosing a language because the syntax is a little simpler on the surface isn’t a good enough reason, especially since when writing modern JS it’s not that much more verbose.
- fragmede 3y agoFair point, python has async and callbacks too. My point though is that those are advanced topics and shouldn't be part of an intro to programming class. It is a little simpler, but given that most students are having to learn so much all at once, imo that "little" counts for a lot!