loading...
re: There's a better way: data mapping. It's a pattern first described by Martin Fowler that relies on a discrete persistence layer to translate applic...
 

I usually call them data stores instead of mappers, but I'm a huge fan of this pattern.

I want to write objects that make sense given the problem I'm solving, and all I want my domain layer to know about the persistence layer is "I can put stuff there and get it back later."

code of conduct - report abuse