News for hackers. Stuff that matters.
Re:The decline and fall of Java on the desktop by bee_rider on Thursday March 03, 2022 @12:44AM (#30537593)
We switched to Python at my school.

Not sure how I feel about Python (or Java) as a first language. Something a bit lower like C would be a better foundation, IMO.

Re:The decline and fall of Java on the desktop by tkot on Thursday March 03, 2022 @04:38AM (#30539011)
Python is definitely simpler to start with but it doesn't expose the beginners to some concepts directly - interfaces are implicit because of duck typing (unless you use the ABC module), everything is public (underscores are just a convention), there is no method overloading etc.

I think it might be more valuable to expose beginners to static typing because it's much easier to transition from "objects have distinct types" to "pretty much everything is just a hashmap" than the other way around.

The thing about C as a first language is that you need to not only learn what programming is but you also need to learn manual memory management which raises the bar significantly and it's pretty easy to write code that fails for reasons which are difficult for a beginner to figure out (like segfaults).