7 reasons for choosing Go

Do you consider using Go but don't know if it's worth the effort? Here are seven convincing reasons for choosing Go for your next projects.

Yes I know, you probably would not be reading this if you were not interested in Go already. However, just in case you have not heard anything about Go before, read on and find out what makes Go a great programming language.

7 reasons for choosing Go

There are many reasons for choosing Go for your next project, or even as the standard language for your team. Here are the top seven.

1. Go is pragmatic and straightforward

Go focuses on the "less is more" philosophy. While other languages drown under a pile of language features of which 90% are completely irrelevant for daily work, Go goes the opposite direction and provides a stable basis with selected, pragmatic features.

2. Go code is readable

Go code looks clear and readable. There is a notable absence of unnecessary punctuation and cryptic operators. Also, the Go syntax and semantics avoid everything that is easy to write but hard to read.

And perhaps most important: the absence of magic. If you see "c := a + b" in the code, then you know this is two numbers being added, rather than some overloaded operation on some derived types whose definitions you have to look up elsewhere before you can fully understand the code in front of your eyes. Go is basically non-magic and simply does what the source code tells you.

3. Go is quick to compile and easy to deploy

The Go compiler is blazingly fast, due to a carefully crafted language syntax, automatic caching, and by enforcing the removal of unused package imports.

Go binaries are self-sufficient. All code gets statically linked into one single binary, which makes deploying ridiculously easy. Just copy the binary to the target platform and you're done. Of course, the Go toolchain also blends nicely into CI/CD pipelines or software orchestration systems.

Cross-compiling pure Go code is dead easy. Compile your code on a single machine for multiple target platforms at once.

4. Go is at home on many operating systems

Go code compiles to native binaries for almost any target platform. No hassle from incompatible versions of any required virtual machine on the target system. No performance loss through running interpreted byte code.

5. Go has concurrency built-in

Concurrency is never easy. But the right language support can help a lot. With a single keyword, you can run a function independently from the rest of the code.

Channels provide a communication and synchronization mechanism that is easier and safer than shared memory and mutexes. (But if you want, you can have these as well.)

6. Go has testing and benchmarking built-in

Testing and benchmarking is not an afterthought in Go. Write testing and benchmarking functions directly in Go, there is no need to learn a specific language for that purpose.

7. Go comes with a rich standard library

Go comes with an extensive standard library pre-installed. No more reinventing the wheel. And if the standard library does not provide the functionality you need, a large community of Go programmers have already created heaps of open source packages and apps for any purpose you can imagine, from Web applications to databases, from big data to machine learning.

To summarize,

Go boosts your productivity and makes coding fun again

Give Go a try! I am sure you will appreciate the clear, pragmatic way of developing.

Happy coding!

Categories: The Language