Ask HN: What is the best statically typed language for back end development?

4 points by aswinmprabhu ↗ HN
I am tired of scripting languages and want to know what the best language for modern backend development is. Golang looks good to me.

7 comments

[ 4.5 ms ] story [ 30.7 ms ] thread
Of course the real answer is "it depends".

I like golang and am very interested in TypeScript. Depends on your RAM/Multicore needs.

It depends, but I have enjoyed Scala and Go.
The JVM is a good platform for back end development due to its having a plethora of mature frameworks and libraries available to do anything you need. You have several language options then depending on what it is you're wanting to do.
Go is the new darling child, and once wasm is in Chrome, it's going to get very big, very fast. And if they manage to polyfill to regular js (assuming that's still the plan - I haven't kept up), that's the end game maneuver.

For front-end, well, TypeScript 3.0 just came out...

Sorry, didn't mean once wasm is in Chrome; it's already in Chrome. Meant once wasm is officially in Go. That version (1.11) is due to be released soon.
For small projects or truly micro services, consider Java/Spark, Crystal/Lucky, or Go/stdlib.

Ensure that it has a fast edit/compile/test loop, ideally with hot-reload for web apps.

Well, if you like C's performance, Python's syntactic elegance, and Lisp's macro system, then you should definitely try Nim language.