DEV Community

Discussion on: I don't get the point of Golang - That's why I need help

Collapse
 
kaamkiya profile image
Kaamkiya • Edited

I use now Go for most of my projects. When I started, I was wondering why I shouldn't just use Python. After a while, something just clicked, and now I love it.

Nothing needs to be done in Go, so if you'd rather, you can something else.

What can you do with Go but not Node?

  1. Build executables. Go is a compiled language, so it's very fast.
  2. Statically typed (although I think Node supports TS now?).
  3. VERY useful error messages. It basically only lets you run your code if it has no errors.
  4. Simplicity. Although this can also be a downside, because you have to do a ton yourself.
  5. The packaging system. go.mod is complex, but once you get the hang of it, it's an absolute pleasure.
  6. Go saves your dependencies. Instead of having 40 node_modules directories, you have one ~/go directory that holds all of your dependencies, and you can use them across different projects.
  7. Concurrency.

Side note: The creator of Node switched to Go. Then Rust. Then made Deno.

Hope it helps :)