Blog

18 March 2021

For Application Server-Side development: Typescript or GoLang

For Application Server-Side development: Typescript or GoLang ?

As I contemplate what is a good technology to work with, I tried several (developer) workflows.

Go Lang, with its compile step, is very familiar, because I have programmed (primarily) using Java for nearly 24 years now.

Typescript, though, is in an interesting place. It “compiles” to Javascript, and runs within the NodeJs engine.

Interestingly, the process is 2 steps (compile-run) for both stacks. But, when working with Typescript, it just feels more “work” than with Go, because Go generates binaries, directly.

Go cannot match the power of Javascript in handling JSON objects, with no pre-defined structure. Specifically constructs like deconstruction ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment ).

Though the maturity in the tooling (VSCode, nodemon, ts-node, eslint, and more) in the JS community hides some of the challenges of using large number of small libraries, rather than writing them by hand.

In the end, it is all about the comfort and the best tool for the job.

I am still not in a position to make a decision, because both have their benefits. So, going to invest in Typescript / NodeJS.

Off to hand-coding Singletons and Dependency Injection.