Self Save Part 2

Continuing in our series, we examine three more problem scenarios with self-saving objects.

Unpaging Facade

Today we examine a technique for working with paged data from web services.

Conversion Ratio

Today we puzzle through a design problem that threatens to result in dozens of extra methods. 

Virtual Proxy

When loading domain objects from an external service, it can be expensive to load up associated objects with them. Today's episode takes a look at a p…

Ghost Load

In today's episode we learn at how to implement lazy loading using the "ghost object" pattern.

Sequel

ActiveRecord has become practically synonymous with SQL database access in Ruby, but it's not the only way to talk to SQL stores. Today we'll explore …

Identity Map

In the last episode we looked at the problem of "aliasing", here there are multiple objects representing a single row in a database. Today, we'll look…

Aliasing

Today we look at a perncious problem that sometimes plagues code which uses an Object-Relational Mapper (ORM). Documentation of the ActiveRecord inver…