by whostolemyhat · 4y ago · 0 comments
It's almost never warranted.
> In 2008 Crockford published a book announcing his discovery that Javascript, contrary to prevailing opinion, has good parts. He describes this as "heresy", and as "possibly the first important discovery of the 21st century", noting that it came as a "great surprise to the community of javascript developers, and to the world at large." He attributes the discovery to his having read the ECMAScript Standard, which he says "literally changed my life." He also notes that the specification document is of "extremely poor quality", "hard to read", "hard to understand", and says that the ECMA and the TC39 committee "should be deeply embarrassed".
I own that book and I still hate Javascript (it's not the fault of the book). Is there another language with such a book?
[1] https://en.wikipedia.org/wiki/Douglas_crockford#Opinions_on_...
There are many languages that I do not like, but I hate none, so I am curious for the reasons of that strong feeling?
The language is very permissive, making it not only easy to shoot yourself in the foot, but in the head as well. There is no easy way to say that your code is semantically correct because JS will allow it to digest anything. So, unless you do thorough review, bad code can easily get through.
Dependency hell if you're using NPM.
I'd be happy if the community was focusing on implementing some kind of default set of libraries, instead of adding syntactic sugar now and then on top of JS. I remember switching from Java to Kotlin, and the collection API was a real pleasure to work with. But in JS, everyone wants to use their set of libraries. Creating a starter project will get you hundreds of dependencies that you can never vet.
Perl maybe, if you end up having to re-read some.