Hacker News new | ask | show | jobs
by leetrout 1850 days ago
That is a really great idea. I love that wiki page. Some of them are harder to follow in a team that prefers "expressiveness". Quotes because I think it's easier to follow Go's prescription especially for always returning concrete types instead of interfaces.

> return a concrete type and let the consumer mock the producer implementation