Hi Feng, On Sun, 30 Dec 2012 10:14:03 +0800 Feng He <fen...@nsbeta.info> wrote:
> Hello, > > I have a question that, what's the advantage of using an ORM instead of the > traditional DBI? And what's better for DBIx::Class and Class::DBI? > Avoid Class::DBI - it is old and lame. DBIx::Class is its more modern and much better alternative/re-implementation. Regarding the advantage of using an Object Relational Mapper ( ORM - http://en.wikipedia.org/wiki/Object-relational_mapping ) instead of traditional DBI - I suppose it is the same as any other abstraction: once you learn it, it may be easier to write code using it, require less programming effort and less code. The possible downside is that, as abstractions go, it may be leaky - http://www.joelonsoftware.com/articles/LeakyAbstractions.html - and/or quirky - http://shlomif-tech.livejournal.com/49510.html , or just plain buggy. Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ First stop for Perl beginners - http://perl-begin.org/ Trying to block Internet pornography is like climbing a waterfall and trying to stay dry. (— one of Shlomi Fish’s Internet Friends) Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/