Hacker News new | ask | show | jobs
by orbz 1360 days ago
Absolutely, having very focused packages helps from an external consumer perspective as well.

Interfaces can help if you have multiple things that all implement the same functionality or you need to mock out for testing, but often times people will create interface bloat for things that are only implemented by a single struct and there’s no benefit to testing.