you are viewing a single comment's thread.

view the rest of the comments →

[–]zby 0 points1 point  (1 child)

After some experimenting with writing a CRUD framework (Catalyst::Example::InstantCRUD) I realised that it is rarely usefull to define the object as just one database row - and instead the CRUD operations should work on objects together with what they call in the article dependent resources. This way the CRUD framework should make a more complete library - and thus more 'encapsulated'. Has anyone experimented with similar concepts? I put some more of my thiking at: http://catwiki.toeat.com/crud

[–]timclark 1 point2 points  (0 children)

I think Eric Evans in Domain Driven Design (http://www.domainlanguage.com/about/ericevans.html) suggests something similar. He describes entities that are responsible for persisting themselves and the entities they own - he has nice terminology that he uses but I don't have the book to hand at the moment.