Repository Implementation on ActiveRecord
blog.arkency.com·4h·
Discuss: Hacker News
Flag this post

Repository implementation on ActiveRecord

In its essence, a Repository separates domain objects from how they’re persisted and provides a limited interface to access them. It’s a tactical pattern described with far more words by Fowler and Evans than I’d like to include in this introduction. It stands in complete opposition to what ActiveRecord pattern promotes. Why bother transforming one into another?

The problem with ActiveRecord pattern comes from its greatest strength. It’s a double-edged sword. Immensely useful in rapid prototyping for a “solopreneur”. Flexible for a well-knit and disciplined team. Spiralling out of control …

Similar Posts

Loading similar posts...