News for hackers. Stuff that matters.
Re:When to Use TypeScript – A Detailed Guide Through Common ... by voidreaper on Sunday April 07, 2019 @08:11PM (#19600854)
Other than Ruby and PHP, I've only really worked with JS/TS on the backend. Which strongly-typed programming language would you recommend on the backend?
Re:When to Use TypeScript – A Detailed Guide Through Common ... by ajxs on Sunday April 07, 2019 @08:47PM (#19601024)
Depending on what it is you're doing, I feel that .net and Java are far superior choices. Obviously these are pretty heavy languages, so obviously decide for yourself whether the size of your app justifies using a language like this. My thoughts run along the lines of: "If people are justifying using Typescript because their projects are large and critical, they're probably large and critical enough to use a language designed for enterprise-scale development." I personally haven't used Go, but I've heard good things about its use in this domain too.
Re:When to Use TypeScript – A Detailed Guide Through Common ... by cmiles74 on Sunday April 07, 2019 @09:32PM (#19601230)
I would like to second this. This idea that everything will move more quickly if the same language is used on the client and server sides is compelling. But .Net or Java have been on the server side a long time, there are projects for which they are well suited.
Re:When to Use TypeScript – A Detailed Guide Through Common ... by smt88 on Sunday April 07, 2019 @09:05PM (#19601108)
TypeScript is very easy to use with Node. You can also use the debugger in WebStorm with it just fine, and you'll be stepping through your TS code instead of your generated JS code.

The problem is really the Node ecosystem, which is a mess and a circus of security issues. Deno[1] may fix most of JS/Node's problems eventually.

For now, if you want a type system that's comparable to TS with a great ecosystem, the best you can get is either F# or Kotlin. If you're not a fan of ML, then you might want to start with Kotlin.

1. https://github.com/denoland/deno