by pkulak · 2y ago · 0 comments
Golang is an absolutely ideal language for writing REST API microservices, that exchange JSON, with a practical and blue-collar mindset.
Plus it compiles to small-ish native executables. Which renders Docker superfluous in many uses cases, and also makes it well-suited for writing DevOps tooling (e.g. Docker, everything from HashCorp, etc).
It's not trying to out-cool Haskell and Rust on online message boards. But I would never in a million years evangelize either of those two languages for routine REST API work in most real-world shops, whereas I could suggest Golang without losing professional credibility.
But it’s a red herring in any case since enum types are such a basic programming language feature. No need to evoke the Cool Kids languages at all.
Those are strong words for a language with all the flaws I just mentioned. :D Yes, green threads are great for network programming, but it's not the only language with them, and one feature does not make it "ideal". If I had to pick the best networking language... I'd probably say Elixir.
But even if we agree that it's ideal, it doesn't change my point.
Then again, so does Go. Go doesn't have an enum keyword like C, but that isn't what defines enums.