A Java developer’s adventures through the strange landscape of Go
This is the story about the rich soup of emotions and discoveries I paddled through when exploring this strange and wondrous language that is called Go. If you also come from the landscape of JVM and plan to take a look at this language, read on to see what might await for you in your travels.
What this is all about
I like learning new stuff, and especially new languages. It’s always interesting to find out how this particular language solves that particular problem and how the syntax differs from those you’ve seen before. Once you’re familiar with many patterns and seen enough different solutions to the same problems, it becomes easier to learn how to program in a new language and discover familiar patterns in the one you’re trying to learn.
At one time, I decided to take a look at Go, and was heading for some surprises. Programming in Go, after getting used to stuff like Java’s streams, Scala’s pattern matching and Kotlin’s functional library was like a travel to a parallel reality, where no lambdas exist and for loops are the VIPs. So let me show you some of the stuff I had to get used to, some that I was missing and how Go makes up for them, as well as some of the things I realized I was missing in Java.