The Tao of Go
bitfieldconsulting.com
bitfieldconsulting.com
I wish go people actually did this. Also it's just not true. The standard library is full of private structs that are returned as interfaces. Just look at the net library for example. Non of the listener structs are exposed. Only the net.Listener interface
And of course the biggest offender is error which is an interface and the return value of basically every function. And you're basically writing type assertions all day
Hang on, you can't just go around naming the Tao.
> (in Chinese philosophy) the absolute principle underlying the universe, combining within itself the principles of yin and yang and signifying the way, or code of behavior, that is in harmony with the natural order. The interpretation of Tao in the Tao-te-Ching developed into the philosophical religion of Taoism.
I'd say their interpretation (while reductive) is in the spirit of the Tao.
That said, I'm no expert and only have a passing familiarity with the Tao through pop-culture.
I’m led to understand that that is canonically the best attainable case of any description of the Tao in words.
Deciding you want to reduce your opponent's moyo while you have a group that's struggling to live is a good way to lose the game; and the proverb is applicable in everyday situations too.
Sure, but how does that apply to programming in general? And more specifically, to Go?