https://www.reddit.com/r/ProgrammerHumor/comments/621qrt/jav...
https://www.reddit.com/r/ProgrammerHumor/comments/621qrt/jav...
* `var` is no longer a thing.
* Even `let` is less common now.
* Using closures and prototypes to enable functions to be used like classes and have private variables and static variables, have been replaced with proper classes
Nowadays if you want to use the good parts of Javascript, just install eslint with insane defaults and let it tell you if you're trying to use the non-good parts
You'll able to accomplish exactly the same with both, so why create yet another way? Seems bit wasteful..
where do I find these insane defaults?
First, find the docs for ESLint and each of the integration packages that you've installed for each major dependency. Then just set each rule to the strictest setting. Then as you're developing, you'll start running into overzealous rules, prompting you to either disable the rule or write some override/exception.
TSConfig, on the other hand, isn't extensible so you can just throw a couple configs from github.com/tsconfig/bases in your `"extends": [...]`. The base config `@tsconfig/strictest` might be of interest to you.
On the other hand, it's a testament to the comment being written (or at least edited) by a human, and not an LLM right?
Looking at the book now, I still like some sections like "Curry" and "Memoization".