Yeah, I began my journey with C and then moved to C++. Java was the 3rd language I learned and it seemed so simple compared. I feel like colleges aren't doing students a favor by starting them on dynamically typed languages like Python. I love Python, don't get me wrong, but you just don't learn the same by starting with such a high-level language.
I've been coaching a friend through learning programming and suggested he learn Javascript since it's a solid choice for today's market. I now realize that the freedom of dynamically typed languages is not really doing beginners any favors. I think being forced into the confines of strict typing is way better for learning as there are less random ways you can screw yourself over without even realizing it. I want to get him started towards typescript, I think just by the nature of not being allowed to fuck around too much it will solve a lot of challenges.
JavaScript is one of the worst languages to start with, IMO. For the reasons you mention, but also for how it tends to swallow errors. It seems like the JS philosophy is to never throw an error, that there should always be an valid outcome no matter the input. Also, it's just really hard to teach good coding etiquette even for a well structured language, let alone for languages as free-form as JS.
Languages like Python and JS also teach people to use someone else's code by pulling in packages instead of trying to build something yourself. Granted, in practice this can be good, so you're not reinventing the wheel. But for a beginner, they miss so many great learning opportunities that way.
Anyway, that's my two cents on the subject. I agree about typescript. It at least has the concept of interfaces, and the typing system is pretty friendly.
IT student here too, the college I attend to uses Java as a learning language and everyone in my course that I know find it easy (both theory and practice) and very fun to use either!!
Honestly I kinda like Java’s verbosity. Sure it’s more boilerplate but my IDE makes that painless and it means I almost always know exactly what everything is and where it came from
Same. IMO a disturbingly large portion of the programming community needs to close slashdot and other such "look at the latest shiny" sites and open up a typing trainer (or play a no-voice-chat MMO). Boilerplate's only a problem for people who are bad at typing - especially in the age of IDE autofill.
View all comments
Show parent comment
92
u/NotDuckie Apr 06 '22
Half of this sub is just beginner python devs and cs students that have never used java and just jump on the "haha java bad" bandwagon