4 ms·
I did web dev for a few years using Angular + various other tools, and yes, it was nightmarish. I had to come back to it briefly recently. But using "boring" T
by kitd 5y ago
I did web dev for a few years using Angular + various other tools, and yes, it was nightmarish.
I had to come back to it briefly recently. But using "boring" Typescript, esbuild and preact, I have to say the experience was an immeasurable improvement. Verging on pleasant even. Everything was well-documented with strong Stackoverflow coverage.
So, boring > shiny
- cageface 5y agoTypescript, esbuild, and preact would have been described as shiny not very long ago. These things take time to mature. I agree that the current JS ecosystem is fine if you don't get too far off into the weeds with obscure dependencies.
- ramchip 5y agoWasn't esbuild released literally last year?
- Ygg2 5y agoIn JS terms, that's like a dinosaur.
- 5e92cb50239222b 5y agoYou probably already know this, but for anyone wanting to do this: esbuild does not do any type checking, so TypeScript with pure esbuild (without a separate tsc step) is only half useful (it gives you better autocompletion, but not much else). https://esbuild.github.io/content-types/#typescript https://esbuild.github.io/content-types/#typescript
- BiteCode_dev 5y agoYou IDE should check the types for you.
- johnnypangs 5y agoThis might worked on solo projects but if you’re working with people, I’d highly recommend enforcing type checking of some sort. People will ignore the IDE error messages.
- skinkestek 5y ago> People will ignore the IDE error messages. Then they get caught in code review at least in any team I work. No way I accept any unnecessary "disable lint" statement in a PR. Also (of course, since it is default) the CI build system breaks if they commit and push without ignores, so no, trying to slide it past me doesn't work either.
- johnnypangs 5y agoIt's not linting, it's typechecking which is slightly different. Linting won't catch type errors. All I'm recommending is to add a typecheck to the CI system so no one sneaks in a broken type (I couldn't recognize a broken type in a PR personally).
- kitd 5y agoYup. Vscode has built-in Typescript support so that does all the type checking as you go.
- BiteCode_dev 5y agoTypescript, esbuild and preact are hardly boring, since most JS dev don't even have tried it yet. React is just starting to become "boring", and I mean that in the JS sense of the world. Because it's lifetime would be considered "modern" and any other language.