3 ms·
You pick TypeScript because you can compile it to JavaScript by hand or in your head. The file size is smaller because there are no runtime features to bundle.
by lolinder 3y ago
You pick TypeScript because you can compile it to JavaScript by hand or in your head. The file size is smaller because there are no runtime features to bundle. When you're looking at the compiled version it's still recognizable as your code just without the types, when you're stepping through things in the debugger there are no surprises, line numbers for errors point you to places that are completely unsurprising because TypeScript is just JavaScript with a type system.
I've tried plenty of other to-JS compilers, even for languages that I love, and I still choose TypeScript every time.
- williamcotton 3y agoHave you even tried Fable? It’s leagues above other similar approaches and has true JS interop. It doesn’t feel that much different than the TS compilation process. It is not what you’re expecting.
- grugagag 3y agoThe main problem with F# is low popularity and hence gig opportunities are a lot fewer.
- williamcotton 3y agoThat is indeed the cost. However, the talent pool is much better. This means your developers aren’t as easily replaceable so that might impact management’s decision making.