My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Golang versus Type Script

Nate Sire's photo
Nate Sire
·May 13, 2021·

1 min read

I was doing a very basic hacker rank for summing the diaganols of a matrix with n number of rows and columns.

Turns out... the Hacker Rank had incorrect directions. I needed to write code just to test the directions. So I ended up writing the solution in two different languages.

Go, Javascript

But... I ran into Go missing a lot of features like basic checking for an array element. There is a ton of boilerplate needing written.

So I decided to try facing Node's notorious silent errors. But I used Type Script.

That is how I learned the inputs from hacker rank were wrong. When I wrote tests and checked types.