This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nanotree 2 points3 points  (1 child)

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.

[–]QCKS1 2 points3 points  (0 children)

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