DEV Community

Discussion on: Golang, it was love at first sight.

Collapse
 
revskill10 profile image
Truong Hoang Dung

What Go can do that Javascript/NodeJS can't ?

Collapse
 
quii profile image
Chris James
  • It's simpler to read and write
  • Better tooling
  • Easier to ship
  • Generally will perform better, especially on CPU bound tasks
Collapse
 
bgadrian profile image
Adrian B.G.

This post is about my subjective passion for Go, but I can be objective too to answer your question. I'm sure others provided better answers but I'll try to sum it up in a few examples.

Basically you can see Go good for building databases, proxies, servers and CLI tools, while NodeJS keeping the business logic and websites.

Sure there are things that NodeJS can do and Go cant! I even keep a list of how many things JS can do nowdays and is getting bigger every month!

I even see them complementary in mid/large size products and teams. If you already have a NodeJS large app you can extract the golden paths that needs to be fast responsive in small go services, keeping the benefits of both languages (like finding developers).

For me personally, after 8yrs+ of JS (not node) in production I can say Go brought me inner peace, stability, solved many engineering problems I faced in real products and simplify the entire building process while making faster and more resilient apps, with only a few keywords. Is not the holy grail! it is just better for me and it suites my next career needs.