DEV Community

Discussion on: After learning Go, what made you stay with it rather than use a different language?

Collapse
 
rhymes profile image
rhymes • Edited

I didn't like it in the beginning, it took me a while to decide to invest time in it. On the surface I didn't like the GOPATH requirement, neither the error handling, nor the strict typing system that much.

I decided to give it another try and stuck around. The GOPATH I still hate, the typing system can be a pain with json, the error handling can be verbose but it makes sense.

The standard library is great, they recently introduced a nice alternative to the GOPATH, the binary compilation is so handy, you can fit it in Docker images sized 15 megabytes, and it's fast, you notice it even with web apps that are mostly io bound. Deployment is also quite easy, you just need the binary.

Try brew install influxdb which is a time series db written in go, basically the only thing that is shipped is the binary ☀️

I don't think Go fits everything but I would define it as fast general purpose language with a great standard library and short compile time.

ps. I don't think I still understand how to use interfaces properly yet but that's just me 😂