Very nice! I must admit that I’ve hardly ever used this pattern and have only seen it. Rails also supplies Enum which could be useful in the first case
One thing worth mentioning, perhaps, is that a lot of folks may not be familiar with Martin Fowler and his ideas. Would be nice to expand or remove that part depending on how short you’d like to lee this. I think this is valuable without that mention :)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Very nice! I must admit that I’ve hardly ever used this pattern and have only seen it. Rails also supplies Enum which could be useful in the first case
One thing worth mentioning, perhaps, is that a lot of folks may not be familiar with Martin Fowler and his ideas. Would be nice to expand or remove that part depending on how short you’d like to lee this. I think this is valuable without that mention :)