[Dbix-class] Moose

Leandro Hermida softdev at leandrohermida.com
Sun Jul 18 12:40:47 GMT 2010


Hi t0m,

On Sun, Jul 18, 2010 at 6:22 AM, Tomas Doran <bobtfish at bobtfish.net> wrote:

>
> On 11 Jul 2010, at 14:48, Leandro Hermida wrote:
>
>> I had a look at KiokuDB, its a very nice project and suitable for
>> certain needs, but it doesn't do ORM. In many software development
>> projects particularly business-related you really the database to be a
>> relational implementation of your entity object model because you have
>> other systems, software and programming languages that will be
>> interacting with the database.
>>
>
> Unless you're going to hide the entire actual DB behind views and stored
> procedures, then this is generally a REALLY BAD IDEA.
>
> You now have no level of abstraction from your database layout and your
> data model.
>
> Which means that changing the database layout (without changing all the
> apps which work on that layout at the same time) is going to break things,
> which then need fixing in multiples places, and releasing in sync - I.e. =
you
> just achieved very very close coupling to your DB schema, which you want =
to
> avoid (for reasons stated above) if possible...
>
>
very good points and makes a lot of sense.  If I can ask a more general
question then, why do ORMs exist in the first place and why are they so
popular vs using a object persistence mechanism?  There must be some serious
advantage to using them.


> Cheers
> t0m
>
>
> _______________________________________________
> List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
> Searchable Archive:
> http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20100718/458=
55765/attachment.htm


More information about the DBIx-Class mailing list