On 3/9/06, John Siracusa <[EMAIL PROTECTED]> wrote:
> What's the appropriate object?  Should that return a class name or a row
> object or what?

It should return whatever represents the given model. This model
representation is something able to do stuff such as searching for
records, creating new records, etc.

> Do many people use the helpers and scaffolding?  I always imagined that
> people might use those to play with, but then write stuff form scratch when
> creating their first real app.

I suppose yes. Because, usually, everything in Catalyst is made so
that it has sane defaults which are overridable. This is the "basic"
scaffolding. It just creates the default directory structure necessary
and some default (almost) empty files which, nevertheless, can
function. E.g. the model classes generated from this proccess for
DBIx::Class are just empty files which inherit from DBIx::Class::Core.
If you need to do anything (such as inflating some column, for
example) you just add code.

There are more "advanced" scaffolding available which can create
full-featured CRUDs out of the database structure. But these ones are
the ones not usually used, since they provide the basic and to do
anything that is a little bit different you need to rewrite a lot of
code. So some people think they're better off starting a Catalyst
application from scratch (that is, from the "basic" scaffolding).

> Well, anyone could read the Rose::DB and RDBO tutorials and have all the
> information they need, I think.

If this is really true, I think I'll try to tackle this on my own. But
I remember having some issues with the tutorials when I first tried to
use RDBO, I even recall posting them here.

-Nilson Santos F. Jr.


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to