Hi!
On Tue, May 08, 2007 at 05:13:03PM -0500, Dave Rolsky wrote:
Just a general question to the list to see if there is interest in
getting together a conference dedicated to Catalyst developers. Or is
the feeling that the normal Perl conferences cover all our needs?
..
One
Kieren Diment wrote:
On 08/05/07, Matt S Trout [EMAIL PROTECTED] wrote:
On Fri, Apr 20, 2007 at 10:05:54AM +0200, Bernhard Graf wrote:
Wherever I looked I only found advice how to serve static files
with Apache.
Here is the same for lighttpd:
Fantastic. Could you POD this up
A few pages on best-practices would be great. For someone learning new concepts
there's lots of new terminology/methods, lots of people have their slant on the
meaning of things and sometimes the penny never drops and then you
give up and go back to old/bad practices because
Matija Grabnar ha scritto:
On Tue, 8 May 2007, Perrin Harkins wrote:
The way most people use Rails and Catalyst is somewhat different from
the MVC concept. The traditional role of the controller is just to
map user input to a method, and nothing more. All of the business
logic is supposed to
Anthony Gardner wrote:
A few pages on best-practices would be great. For someone learning new
concepts there's lots of new terminology/methods, lots of people have
their slant on the meaning of things and sometimes the penny never
drops and then you give up and go back to old/bad
RA Jones wrote:
Absolutely - I'm in exactly the same position, and am following almost
exactly the same process, except that I abandoned RoR early on and
decided to stick with Perl for the re-write. Catalyst was an entirely
new concept to me, having progressed from a long-list-of-if-elsif-else
Jamie Neil wrote:
RA Jones wrote:
Absolutely - I'm in exactly the same position, and am following almost
exactly the same process, except that I abandoned RoR early on and
decided to stick with Perl for the re-write. Catalyst was an entirely
new concept to me, having progressed from a
Christopher H. Laco scribbled on 5/9/07 7:56 AM:
The best approach for me has been what mst has said before. Make your
core stuff usable outside of the work of Catalyst. Seems like a no
brainer, but when you're just learning Cat and following examples, it's
easy to forget.
yes, it took me a
Hello all,
i have been trying hard to form a query through my controller to extract
records. example:
my $loan_list = $c-model('MyAppDB::TblLoan') -search
(
{userid = $userid},
{
select = [ 'userid', 'loanid', { max = 'price' } ],
group_by = [qw/
On Wed, 9 May 2007, Peter Karman wrote:
* subclass subclass subclass
My experience tells me that lots of subclassing is a bad smell. Delegation
is often simpler and less fraught with possibility for name conflicts.
Perl's inheritance mechanism is particularly egregious, of course. SUPER
On Tue, May 08, 2007 at 02:04:01PM -0700, John Napiorkowski wrote:
--- Matt S Trout [EMAIL PROTECTED] wrote:
On Tue, Mar 20, 2007 at 01:15:48PM -0700, John
Napiorkowski wrote:
I may have answered my own question. A peer
pointed me to:
On Wed, 9 May 2007, Peter Karman wrote:
My experience tells me that lots of subclassing is a bad smell. Delegation
is often simpler and less fraught with possibility for name conflicts.
What do you mean by delegation?
Delegation is has-a relationships, as opposed to is-a.
Here's a
On Wed, May 09, 2007 at 10:45:43AM +0100, Jamie Neil wrote:
RA Jones wrote:
Absolutely - I'm in exactly the same position, and am following almost
exactly the same process, except that I abandoned RoR early on and
decided to stick with Perl for the re-write. Catalyst was an entirely
new
On Wed, May 09, 2007 at 10:02:19AM -0500, Dave Rolsky wrote:
On a side note, Catalyst plugins as a rule seem to jam _way_ too many
methods into the things they extend (the session plugin is truly
egregious). Some day I'd like to write a version of the session plugin
that adds one method to
Dave Rolsky scribbled on 5/9/07 10:02 AM:
[snip]
That's the subclassing piece. The delegation is that rather than
implement the functionality of breadcrumbs in the response object, the
breadcrumbs accessor simply returns a VegGuide::Breadcrumbs object.
ah. that makes sense. Now I have a
In the case of the example above:
See svn.mangoframework.com/CPAN/Mango/trunk/
Mango::Provider::Users is really a subclass of Mango::Provider::DBIC
that uses a schema to do its bidding. The users provider exposes
Mango::User objects...which are quite literally...stupid. They know
nothing of their
Matt S Trout wrote:
On Wed, May 09, 2007 at 10:02:19AM -0500, Dave Rolsky wrote:
On a side note, Catalyst plugins as a rule seem to jam _way_ too many
methods into the things they extend (the session plugin is truly
egregious). Some day I'd like to write a version of the session plugin
On Wed, May 09, 2007 at 11:41:32PM +1000, Gaurav Talwar wrote:
Hello all,
i have been trying hard to form a query through my controller to extract
records. example:
my $loan_list = $c-model('MyAppDB::TblLoan') -search
(
{userid = $userid},
{
select
* Dave Rolsky [EMAIL PROTECTED] [2007-05-09 16:05]:
All problems in computer science can be solved by another
level of indirection (Butler Lampson)
... except the problem of having too many levels of
indirection.
The funny thing is: that’s wrong!
You can add a layer of abstraction on top
On Wed, 9 May 2007, A. Pagaltzis wrote:
Delegation means that the caller communicates only with the
object that delegates and doesn’t know which object does the
actual work. That’s not what’s happening in your example.
Something like this would be delegation:
sub trail_length {
my
On Wed, May 09, 2007 at 04:21:19PM +0100, Matt S Trout wrote:
Most things that are currently plugins should, really, be either Controller
base classes, models or helper objects that are handed to the template.
I guilty of this. Plugins have been an emphasized part of Catalyst
and, well, Cat
Hi Bill,
* Bill Moseley [EMAIL PROTECTED] [2007-05-09 18:35]:
Not really a Cat question, but do many people use lexical vars
to store their private methods in plugins?
my $private_method = sub { ... }
later:
$self-$private_method( $foo );
I thought of that recently and have
--- Thomas Klausner [EMAIL PROTECTED] wrote:
Hi!
On Tue, May 08, 2007 at 05:13:03PM -0500, Dave
Rolsky wrote:
Just a general question to the list to see if
there is interest in
getting together a conference dedicated to
Catalyst developers. Or is
the feeling that the normal
On 10/05/2007, at 1:51 AM, Dave Rolsky wrote:
On Wed, 9 May 2007, A. Pagaltzis wrote:
Delegation means that the caller communicates only with the
object that delegates and doesn’t know which object does the
actual work. That’s not what’s happening in your example.
Something like this would
24 matches
Mail list logo