[Catalyst] So, what do we want in the -next- book?
Ash Berlin
ash_cpan at firemirror.com
Fri Apr 4 13:37:57 BST 2008
On 4 Apr 2008, at 13:17, Kieren Diment wrote:
>
> On 4 Apr 2008, at 23:01, Ian Sillitoe wrote:
>>>
>>> [...] Or like others have suggested, a cookbook with a large
>>> variety of
>>>> useful examples showing "best practices" for different situations.
>>>>
>>>
>>> That's exactly what I would like to see. I got the first book
>>> (thanks!)
>>> and would buy such a cookbook immediately.
>>>
>>
>> Seconded... and, like one of the previous posters, I've just emailed
>> (proposals@) O'Reilly (.com) making a case for Catalyst Cookbook/Best
>> Practices.
>>
>
> Thanks for that. The next book is only going to happen if a proper
> publisher ponies up a proper advance, contract and co.
>
> There is need for discussion though. i had a look at the source for
> Catalyst::Model::File the other day, and while what it does is
> pretty easy to understand, I don't really understand why moose is in
> there for example. So what I'm saying is things like "common idioms
> you'll see in catalyst model and controller code".
Moose is in there for InstancePerContext, so that you can do:
$c->model('File')->cd('foo/bar');
$c->model('File'')->slurp('file.txt');
to access the contents of $configured_root_dir/foo/bar/file.txt.
I could have written the ACCEPT_CONTEXT sub myself, but DRY and all
that.
-ash
More information about the Catalyst
mailing list