2 ms·
Yuck, I wish they’d just stop messing with the JS language primitives and syntax already and just let it be. Less is more. What’s that quote? Something along
by metadat 5y ago
Yuck, I wish they’d just stop messing with the JS language primitives and syntax already and just let it be. Less is more.
What’s that quote? Something along the lines of:
“Any idiot can make something more complex, it takes true genius and courage to simplify.”
Crawford’s book:
JavaScript: The Good Parts
Is a very thin book and pretty much sums it up for the actual useful important bits I needed to know. Don’t need to save a few lines here and there with new unintuitive, esoteric operators.
Python also has the same disease as of late, with “features” like the addition of the async keyword and introducing multiple ways of accomplishing the same thing. It’s sad to see previously beautiful, elegant giants grow random trendy warts. They could have remained opinionated, pragmatic, and timeless instead. Could have left async to the mess that is Twisted (which was useful and fine as it was!).
/rant, sorry.
- threatofrain 5y agoI see Doug Crockford's book as a dark magic tome for the dark ages of JS, but that time has passed. Even the codebase of Crockford's old ESLint has moved on to modern JS. That book was published right around the release of Node.JS, the iPhone 3GS, and very shortly after came NPM. So the JS community did not have proper modules back then and would use immediately invoked anonymous functions to mutate the global scope to create a sense of namespace modularization. The retrospective consequence is that valid JS namespaces like _ and $ are no-go zones for the community, and possibly forever so. Modifying the prototype of common objects also did not help (flat vs flatten). Not a harmonious way of relating to the neighborhood IMO. And on the matter of async, what we used to have was a hack given by the popularization of a Microsoft browser API.
- toomanydoubts 5y agoNow I, for instance, would like to see JS getting decent syntactic sugar for function composition and pattern matching.