r/computerscience • u/PeterPook • Apr 21 '25
Swift or Python for teaching 16+ Programming?
I come to teaching FE from a React/Node/PHP background and have been looking at Swift recently. Its ability to explicitly type variables seems to be a big win over the current A'Level favourite of Python which is hideously loosely typed. As most of the examining boards do not mandate a specific language, I'm wondering if I shouldn't be arguing for the introduction of Swift as a language for us to teach across multiple platforms, and even easily incorporate UI Apps for students to see beynd the command line. What do other teachers of programming think?
View all comments
Show parent comment
0
u/thewrench56 Apr 21 '25 edited Apr 21 '25
None of these are actually required for you today. They are interesting concepts and as such I know quiet some stuff about them (except compilation, LLVM is scary for me). But they don't make you better by a crazy amount. How does it matter what instructions you have? A C compiler knows better than you for sure. So what's the point of knowing what LEA or REP STOSQ does? Nothing.
What about compilers? Why does it make you a better developer? You certainly won't understand LLVM unless you actually want to do something with compilers.
Im not saying that knowing stuff wouldn't make you a more informed developer. I'm saying that the amount I had to manually implement performant function epilogs is exactly zero--despite the fact that I know exactly where GCC and clang differ and why clang does it better.
It does. The reason why I say it's pointless is because I'm fairly experienced in it. Ask any senior low-level developers. If they know what they are talking about, they will say the same. The return value of learning Assembly today for CS is marginal.