Skip to content

Comment on Golang – Pull all the structs out???parent

Comments

This is usually solved with more packages of more focused independent functionality rather than less packages of less functionality.

Also, dependency injection. It's possible to get rid of all dependencies if your code just refers to abstract interfaces and delegates the responsibility to provide concrete implementations to downstream dependencies.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.