|
|
|
|
|
by fallenspec
1783 days ago
|
|
> The friction with typescript is the build environment (speaking as someone who also prefers it, and uses it all day). You can literally do: tsc filename.ts
And you will have a javascript file that you can run in a browser. No configuration files needed, just need to install the typescript compiler. Sure if you need more complicated things. You will need a more complicated setup. But it is no worse (and in someways better) than most of the ecosystem.> If someone else is handling that work for you (and in most companies this does essentially become a core responsibility for a few critical maintainers) then yes - Typescript feels great. I don't know where you work. However I've done this myself by myself. It is well documented and it isn't that difficult. I think the hardest to setup from scratch is webpack, but Gulp is fairly straightforward. I've have set stuff up completely from scratch and created my own framework with TypeScript (I was bored during lockdown) and it takes maybe a day to figure out with webpack. Not something for a beginner. However you don't need a whole team to do this or specific people looking after it. > If you have a small, single person project - there's enough real overhead there that I'm not sure typescript is the right initial choice. The same could be said of any other language where you need any sort of build system and a compiler. |
|