It’s comical that in order to use JavaScript properly, you need all kinds of workarounds. Most people suggest linters (which can give you annoying false positives). Others suggest TypeScript, which is a strict superset of JavaScript and as such does nothing to protect you against JavaScript’s quirks.

And you’ve suggested Flow, another linter (essentially).

It’s made worse by the fact that most people won’t be using TypeScript nor Flow. It’s not at all clear that TypeScript will ever become mainstream, despite its rise in popularity at Redmonk.

I’ve used many languages in my 20+ years in IT, and JavaScript is the only one for which you must jump through hoops to avoid its crap.

Look, I get it. When it comes to web development, JavaScript is the only game in town, being the only language available in the web browser. So you might as well make the most of it. But let’s not pretend that this isn’t a crap language.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store