5 ms·
Most people that care about Typescript are JavaScript developers who desire more structure and safety. It can't do anything that JavaScript itself can't do. The
by bradenb 8y ago
Most people that care about Typescript are JavaScript developers who desire more structure and safety. It can't do anything that JavaScript itself can't do. The article itself has a great description of the benefits in the first paragraph.
- jhabdas 8y agoI'm familiar with it and have used FlowType which I believe has similar qualities. Just didn't feel worth the effort if you're building for throwawayability. So I'm still left wondering what's the draw.
- albertgoeswoof 8y agoIt’s faster to write typescript than JavaScript. Because a) you get properties and type definitions popping up in your text editor as you write code and b) you eliminate a tonne of run time bugs There’s basically no extra effort to using typescript if you already have a build pipeline running. It’s not like using Java or Haskell where you’re drowning in type definitions.
- aoeusnth1 8y agoAre you aware that some people build projects with JavaScript that aren't intended to be thrown away quickly? TypeScript makes writing frontends easier and it makes writing Node-JS apps easier. It makes it easier to both read and write code.
- coldtea 8y agoThe draw is for people who aren't building for "throwawayability"...
- steego 8y agoIf you're familiar with it, you might want to consider sharing your thoughts on it rather having people waste their time explaining something to you that you're already familiar with. Otherwise, your inquiry doesn't come off as genuine. > Just didn't feel worth the effort if you're building for throwawayability. Now that's a legitimate point. If you're building for throwawayability, then TypeScript and FlowType are probably not worth your effort. For other people, modeling things with types helps them move faster even for throwawayability. Personally, I tend to code first, use type inferencing first, and then annotate later. However, I also tend to use a lot of reflection as well to help me prototype things quicker. If I've found the types I've wanted after I've explored the domain space, I'll then annotate afterward to lock them in. As with anything, YMMV.