3 ms·
Modern JS is TypeScript. Also Yarn is very handy. (Fast, simple, correct.) If you need leftPad, maybe just "vendor" it manually.
by pas 7y ago
Modern JS is TypeScript.
Also Yarn is very handy. (Fast, simple, correct.)
If you need leftPad, maybe just "vendor" it manually.
- krapp 7y agoModern JS is the current ECMAScript standard. Typescript is not "modern JS", any more than Coffeescript was, any more than the compile-to-js language that will probably replace it in a week. You're confusing the tool for the language the tool operates on, akin to claiming modern C++ is Visual Studio.
- pas 7y agoNot using TS means leaving a lot of useful tools on the floor. The ECMAScript standardization is process is invaluable, after all TS builds upon it. But TS provides a saner subset (and adds a very productive type system), without that I wouldn't touch "modern" JS even with a stick.
- jannes 7y agoWhat do you mean with TS provides a subset of JS? TS is actually a superset of JS. Quoting the TypeScript website: > TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. https://www.typescriptlang.org/ https://www.typescriptlang.org/
- js4ever 7y agoOne thousand yes to this!
- CuriousSkeptic 7y agoCoffee-script was obviously always a fad. It basically traded legibility for ergonomics. Adding nothing of particular value to maintainability and longevity. TypeScript otoh is just ES with types. It moves in the completely opposite direction, adding just enough syntax to get a proper type system in place (a pretty good one to boot). If anything I would expect it’s syntax additions to be adopted as the standard and directly supported by runtimes. Despite static typing not being that useful for interpreters. Unless runtimes will completely phase out es, focusing on wasm. (But that will take decades, so not really an either or thing)