Good foor for thought. Thanks both.
On 2 Mar 2015 23:43, "Jonah Benton" wrote:
> Hi Colin, for me this is usually an Invented Here/Not Invented Here
> question.
>
> When I'm inventing a thing with state and a lifecycle I'll define it as a
> Record and slap the Lifecycle protocol implementation o
Hi Colin, for me this is usually an Invented Here/Not Invented Here
question.
When I'm inventing a thing with state and a lifecycle I'll define it as a
Record and slap the Lifecycle protocol implementation onto it. I'd do that
with your Registry.
When I'm using a thing someone else made, usually
I would do the latter.
I like the extend types to component/Lifecycle wherever possible. The goal
is to have all components in your system only interact via protocols. This
way, you have established interfaces between components, and if you want to
swap an implementation, you just satisfy the p