タグ

2021年9月29日のブックマーク (1件)

  • How To Use Go Interfaces

    I occasionally give free Go consults and code review on top of my daily work. As such, I tend to read a lot of other peoples’ codes. And while this is really more of a feeling *Now, you should go, really? You're a statistician by training ffs, I’ve seen an increase in what I call “Java-style” interface usage. This blog post is a Go specific recommendation from me, based on my experiences writing G

    golden_eggg
    golden_eggg 2021/09/29
    "拡張性"を盾にinterfaceを作り、結局見込んだ拡張は発生せずに実装structは1個だけ、無駄なinterface化をやめたらベンチマークがガッツリ改善した。というやらかし体験があるのでとてもわかる