News for hackers. Stuff that matters.
Re:Why We Chose Typescript by fauigerzigerk on Saturday July 01, 2017 @08:25AM (#14676808)
I believe that we tend to get causality wrong on this one. I don't think dynamic languages have some intrinsic property that makes us more productive or facilitate faster time to market.

Rather, I believe that people who are concerned about the soundness, consistency and maintainability of their code, and hence favor powerful static type systems, are incapable of prioritising time to market.

Re:Why We Chose Typescript by resf on Saturday July 01, 2017 @09:17AM (#14676984)
Statically typed languages increase productivity by catching errors early, but decrease productivity by making users jump through hoops.

e.g. at one end of the spectrum is Java, which everything has to be a class. Even if you want to write a function, it has to be expressed as a static method in a class. In Java it's just not possible to implement ideas in the most obvious way, it has to be done in the Java way.

Conversely, TypeScript was designed to work with JavaScript (which is very dynamic), so it has a very capable structural type system. The productivity penalty is negligible.

Re:Why We Chose Typescript by mercer on Monday July 03, 2017 @03:17AM (#14686466)
What I love about TS is that it's up to me how much effort I want to put into the type system. I find that I end up using TS even for very small projects, because I can use it for only 'the important' bits.

That said, my background is mostly Ruby/Python/JS/PHP, so for all I know this is true of many statically typed languages (but from what I read this is not the case).

Still, for those with a background similar to mine I can highly recommend TS as a great starting point for more statically-typed code, precisely because it's opt-in if you want it to be.