Re:Is Go Duck-Typed?
by loopz on Wednesday March 04, 2020 @04:32PM
(#22488381)
"Drawable" as a name is pretty bland, like patterns. Do we ever really say "drawable" out loud?
So I suspect if we seek more meaningful objects and models, they become more active, have better names, improved design, etc.
If you ask a janitor about Drawable, will he say it's all about draw()? So I think it's kind of a dreary default that we need to avoid and focus on who the actors are, what messages they will pass, and the hidden treasures they encapsulate (don't show, but tell!).
So I suspect if we seek more meaningful objects and models, they become more active, have better names, improved design, etc.
If you ask a janitor about Drawable, will he say it's all about draw()? So I think it's kind of a dreary default that we need to avoid and focus on who the actors are, what messages they will pass, and the hidden treasures they encapsulate (don't show, but tell!).