database.yml &references not working
Psych is the new YAML parser which is presumably better but can’t merge hash keys. This should help http://pivotallabs.com/users/mkocher/blog/articles/1692-yaml-psych-and-ruby-1-9-2-p180-here-there-be-dragons
Psych is the new YAML parser which is presumably better but can’t merge hash keys. This should help http://pivotallabs.com/users/mkocher/blog/articles/1692-yaml-psych-and-ruby-1-9-2-p180-here-there-be-dragons
Your example terms; DataMapper, DAO, DataTableGateway and Repository, all have a similar purpose (when I use one, I expect to get back a Customer object), but different intent/meaning and resulting implementation. A Repository “acts like a collection, except with more elaborate querying capability” [Evans, Domain Driven Design] and may be considered as an “objects in … Read more
The data mapper pattern only tells you, what it is supposed to do, not how it should be implemented. Therefore all the answers in this topic should be treated as subjective, because they reflect each authors personal preferences. I usually try to keep mapper’s interface as simple as possible: fetch(), retrieves data in the domain … Read more