My most idiosyncratic JS opinion is that we should all write
`0, { x } = y;`
instead of
`({ x } = y);`
so you don't have to jump to the end of the line to add the parenthesis. If only I could convince tooling to support this... (i.e. get prettier not to add the parentheses)
Several people blamed the recent npm incidents on JS's minimal standard library.
I think that's wrong: the affected packages are mostly either already covered by node or could not reasonably be in a standard library.
But! I'm always taking suggestions for new stdlib features.
TIL that Node shipped an API for stripping TypeScript types, not just support for doing so when running files from the CLI.
This makes it trivial to have pure-TS web apps (including the frontend!) with no build step at all.
Some common questions and answers about the development of JavaScript: github.com/tc39/faq/
Feel free to suggest more!
Breaking my "never tweet" rule to bring you this overview of a very neat JS library which solves the "your function can be usable in either sync or async contexts, but not both" problem. writing.bakkot.com/gensync.h…
