3 ms·
Can anyone offer an opinion on how mainstream is TypeScript? Is familiarity with it likely to be useful to companies who use plain JS? And does TS tend to be us
by andyjohnson0 10y ago
Can anyone offer an opinion on how mainstream is TypeScript? Is familiarity with it likely to be useful to companies who use plain JS? And does TS tend to be used across the stack, or it is used more for front-end or back-end?
I keep trying to get my head around javascript, and each time end-up walking away metaphorically shaking my head in disbelief. I suspect that this is because my background is in languages like C/C++/C#, so I'm wondering whether TypeScript might provide a way in for someone like me.
- dagw 10y agoI keep trying to get my head around javascript, and each time end-up walking away metaphorically shaking my head in disbelief. Which parts are you having problems getting your head around? Typescript doesn't change anything fundamental about the language (especially if compared to ES6), but does add a bit of nice syntactic sugar and (optional) compile time type checking, which is really handy for catching certain bugs and making your code easier to read and reason about. Typescript's big advantage (and disadvantage) is that it is a strict superset of JavaScript. This means that all your existing JavaScript code is already valid Typescript code and so you can move your code from JavaScript to Typescript in small incremental steps. The downside of this is it places some limits on how the language can evolve. If you want a web language that 'feels' closer to C++ or C#, your best bet is probably to check out Dart.