I figured that I’d just draw out how I’m using the Repository pattern and shared examples since that’s what I’ve been working on this past week.

As I went down the line setting up each PostgreSQL repository and DataMapper model that correspond to my existing in-memory classes I grew more and more comfortable with what I was doing and how I could user shared examples to both clean up my code and insure that my two data structures were interchangeable. (Here’s the details on how I set up the shared examples.)

This may have taken longer than I hoped but it was a huge learning experience.

repository diagram