Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Common Interface Mistakes in Go (medium.com/andreiboar)
3 points by zuzuleinen on June 24, 2024 | hide | past | favorite | 2 comments



Great article. Although the interface is really useful, taking advantage of it too much is not the right thing to do. "I still see people creating interfaces in advance because they think they might need more than one implementation in the future."


Thanks for your comment! On the golang sub-reddit[1] was not that well received. I knew it will lead to that because some things are controversial and also on my part I should have probably explained more so I tried to do that in the comments there. It's hard to condense lots of info in one post, but I just wanted to write about these things cause I see them so often

[1] https://www.reddit.com/r/golang/comments/1dnk96p/7_common_in...




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: