A Faux-O Deck of Cards - Mixing Functional and OO styles FTW
A new article is up @ rubylove.io!
A Functional OO Deck of Cards.. Let’s build a deck of cards today using a hybrid approach, that is to say, lets use good Object Oriented design but keep our objects stateless and our functions idempotent.
We are going to need to describe a deck of cards using objects, so let’s look for some logical boundaries and give them names. One way we can do this by describing what we want in a paragraph and a title. Let’s do that now!
Post a comment