Re:Ask HN: Codebases with great, easy to read code?
by opportune on Monday March 21, 2022 @04:13PM
(#30759123)
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)
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)