Hacker News new | ask | show | jobs
by turtleyacht 882 days ago
That makes sense. I'm trying to wrap my head around Dubray's State-Action-Model and have reduced it to rewriting examples from different perspectives (first starting with the model, for example).

I found this answer on StackOverflow about Go structs for composition. It's interesting because at least there's an example of how not to do it (in Go) and a detailed answer:

https://stackoverflow.com/a/70100167

The Ben Franklin approach: "I've seen one more way not to write it."

Hope you find or figure what you're looking for.