Today we begin a conversation about Service Objects and alternatives.
Tag: poeaa
Episode #191: 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 pattern for transparently lazy-loading …
Episode #183: Extracting Ghost Load
We've used the "ghost object" pattern to lazily load attributes of a model object. And we've made a macro to easily declare "ghost-loadable" attribute accessors. Today we complete the generalization …
Episode #180: Ghost Load
In today's episode we learn at how to implement lazy loading using the "ghost object" pattern.
Episode #178: 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 at one possible solution …
Episode #172: Registry
Today's dish is another one from one of my favorite cookbooks: Martin Fowler's Patterns of Enterprise Application Development. This time, we'll use the Registry pattern to make it easy for …
Episode #169: Caching Gateway
You might remember the Gateway and Mapper patterns from recent episodes. Today we'll look at how to insert a caching layer between those two patterns. In the process, we'll examine …
Episode #164: Mapper
Today we explore a pattern for bridging the gap between different domain models.