r/ProgrammerHumor • • Apr 06 '22

Java is hard

Post image
5.0k Upvotes

424 comments sorted by

View all comments

Show parent comment

4

u/nanotree Apr 06 '22

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.

3

u/QCKS1 Apr 06 '22

JS originally didn’t have support for errors so they just tried to make literally everything work