2 ms·
Go basically codifies a lot of best practices for writing C++ at Google, but I wouldn’t say it always teaches good code. Good Go would definitely help you learn
by opportune 5y ago
Go basically codifies a lot of best practices for writing C++ at Google, but I wouldn’t say it always teaches good code. Good Go would definitely help you learn how to write good systems code in any systems programming language though, and to be explicit/clear instead of terse.
But you can easily code yourself into a corner with Go too. If someone doesn’t know how to use concurrency well they can do bad things like overcreating goroutines or making a mess with channels. And some of the common patterns (particularly excessively overriding things) can be considered an anti pattern in terms of understanding (IMO)