People do not use JavaScript properly. The question is, why?

To use JavaScript properly, you must study the language spec carefully. You must understand all the rules of type coercion. You must know the ins and outs of the language spec in detail. Otherwise, you will trip up easily over the unusual semantics of the language.

In my long career, I have used many programming languages…FORTRAN, Tandem TAL, C, C++, C#, Objective-C, Java, Python, Smalltalk, and Go. I have never looked at the language spec for any of these languages. Why? Because these languages are sensibly designed with predictable semantics that is commonly understood. Why, then, is it necessary to dig so deep into JavaScript’s language spec?

JavaScript apologists constantly tell us that the language is easy to learn and easy to use. The above clearly exposes this lie. To use JavaScript properly, you must do a lot more work to understand the language. Just following any of the numerous tutorials you find on the web, or reading Douglas Crockford’s book, is not enough.

Do you want to work that hard? Choose a more sensible language for web development. There are many to choose from.

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