Grokbase
Topics Posts Groups | in
x
[ help ]

Matthew Pitts (m...@a3its.com)

Profile | Posts (21)

User Information

Display Name:Matthew Pitts
Partial Email Address:m...@a3its.com
Posts:
21 total
7 in Catalyst Framework
4 in catalyst@lists.scsys.co.uk
10 in Perlbal

5 Most Recent

All Posts
1) Matthew Pitts [Catalyst] Catalyst/DBIC/CGI developer for contract work
| +1 vote
I've been working on some new projects that have pulled me away from my Catalyst/Perl duties and,...
catalyst@lists.scsys.co.uk
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
I've been working on some new projects that have pulled me away from my
Catalyst/Perl duties and, as a result, we're seeking a direct hire
contractor that can help us support a couple of Catalyst apps and a
legacy CGI app. See the job posting at http://jobs.perl.org/job/8822 for
more info. We're hoping to find someone in the North Carolina area
(Greensboro, specifically), but any Cata-listers will be given strong
consideration.



My thanks to all of those folks that keep the non-reinvented wheel
spinning.



v/r



-matt pitts
2) Matthew Pitts [Catalyst] So, what do we want in the -next- book?
| +1 vote
I've been using Perl for many years with the last two being professional and I'm just now becoming...
catalyst@lists.scsys.co.uk
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Tue, 2008-04-29 at 12:06 -0500, Cory Watson wrote:
> On Tue, Apr 29, 2008 at 9:51 AM, J. Shirley <jshirley@gmail.com>
> wrote:
> Dare I say, an Enlightened Perl Development book?
>         
>
>
> Being in the middle of 5 or 6 apps that all use the 'enlightened'
> stack of perl libraries I can personally say that I would _love_ to
> have this book to recommend to our developers or to others.
>
>
> I love DBIC, Catalyst, Moose and friends because they don't force me
> into a particular way of doing things. The problem with this approach
> is that, for the newb, there are so many choices to make. It's not
> always clear which is the best. I know I've made -- and continue to
> make -- bad choices that I later have to undo. A guide into this area
> of perl would likely be very helpful.

++

I've been using Perl for many years with the last two being professional
and I'm just now becoming somewhat aware of what the "enlightened"
libraries are. I stumble in this area a lot.

A book into this area as a whole would be very nice.

v/r

-matt pitts
3) Matthew Pitts [Catalyst] Dispatching based on path and host/domain
| +1 vote
I never met a "matt" I didn't like :) I had thought for awhile that it was generic enough to be...
catalyst@lists.scsys.co.uk
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
> -----Original Message-----
> From: Matt S Trout [email protected: dbix-...@trout.me.uk]
> Sent: Tuesday, April 22, 2008 12:14 PM
> To: The elegant MVC web framework
> Subject: Re: [Catalyst] Dispatching based on path and host/domain
>
> On Tue, Apr 22, 2008 at 09:24:17AM -0400, Matt Pitts wrote:
> > As far as DBIC goes, yes I subclass DBIC::RS - actually I've built
> out a
> > common DBIC "library" that I use in my DBIC models that provides
> common
> > base classes for DBIC and DBIC::ResultSet, and a standard set of
> > Exceptions. The library provides come really common filtering
> facilities
> > for my apps like "active" flag and "valid_from"/"valid_to" date
> ranges
> > for records.
>
> That smells like there's a couple nice DBIC components in there trying
> to
> escape.
>
> Want some svn space?

I never met a "matt" I didn't like :)

I had thought for awhile that it was generic enough to be useful to
others, but just hadn't spent the time to publish it.

Let me talk to my boss about committing it publically - he and I are the
only FOSS lovers in an M$ Gold certified shop :). Makes for interesting
office talk.

v/r

-matt pitts
4) Matthew Pitts [Catalyst] Dispatching based on path and host/domain
| +1 vote
Unless one is specifically looking to white-label an app, different functionality across different...
catalyst@lists.scsys.co.uk
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
> -----Original Message-----
> From: Matt S Trout [email protected: dbix-...@trout.me.uk]
> Sent: Tuesday, April 22, 2008 9:12 AM
> To: The elegant MVC web framework
> Subject: Re: [Catalyst] Dispatching based on path and host/domain
>
> On Tue, Apr 22, 2008 at 10:22:55AM +0100, Curtis Fletcher wrote:
> > > -----Original Message-----
> > > From: Matt Pitts [email protected: m...@a3its.com]
> > > Sent: 22 April 2008 03:06
> > > To: The elegant MVC web framework
> > > Subject: RE: [Catalyst] Dispatching based on path and host/domain
> > >
> > > > You've probably heard this before on the list, but...
> > > >
> > > > Ideally, you shouldn't have enough code in your Controllers
> > > to justify
> > > > "sharing" the app across domains that need different
> functionality.
> > > The
> > > > meat of the app should be in the Models, then you can just run
> > > multiple
> > > > Cat apps - one with Cart controllers and one without - that use
> the
> > > > same
> > > > "shared" Models.
>
> Disagree. Just because you want to minimise code in the controller
> doesn't
> mean you don't want to consider this to be the 'same app'.

Unless one is specifically looking to white-label an app, different
functionality across different domains means "two apps" to me. What
happens when domain1.com gets bought out and they want to rebrand, or
worse just a tarball of all the code behind their site? Yucky stuff if
you're running in the 'same app' as domain2.com.

> You're making a valid design point, but then jumping from there to an
> invalid one by ... well, handwaving so far as I can see.

I would add the caveat that if the two domains are for the same client
or are *completely* internal to my company, then I'd consider running it
as "one app". Otherwise, I'd rather maintain two separate apps and some
common Models than do a lot of dispatch kludging to provide different
functionality.

v/r
-matt pitts
5) Matthew Pitts [Catalyst] Dispatching based on path and host/domain
| +1 vote
functionality. the everyone You're very welcome. As far as DBIC goes, yes I subclass DBIC::RS -...
catalyst@lists.scsys.co.uk
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
> -----Original Message-----
> From: Curtis Fletcher [email protected: curtis.fle...@pharmaventures.com]
> Sent: Tuesday, April 22, 2008 5:23 AM
> To: The elegant MVC web framework
> Subject: RE: [Catalyst] Dispatching based on path and host/domain
>
> > -----Original Message-----
> > From: Matt Pitts [email protected: m...@a3its.com]
> > Sent: 22 April 2008 03:06
> > To: The elegant MVC web framework
> > Subject: RE: [Catalyst] Dispatching based on path and host/domain
> >
> > > You've probably heard this before on the list, but...
> > >
> > > Ideally, you shouldn't have enough code in your Controllers
> > to justify
> > > "sharing" the app across domains that need different

functionality.
> > The
> > > meat of the app should be in the Models, then you can just run
> > multiple
> > > Cat apps - one with Cart controllers and one without - that use
the
> > > same
> > > "shared" Models.
>
> Absolutely right, my controllers are much, much too heavy. This all
> came
> from "learning as I went" and I distinctly remember the point at which
> I
> gave up trying to put business logic in the model. At the time there
> seemed to be minimal if any examples that illustrated the model being
> anything other than an adaptor for DBIx::Class::Schema so I just
> figured
> I was mistaken in my attempt to do so.
>
> So could I ask, now I know a little more than I did then, Does
everyone
> here subclass DBIx::Class::Resultset (a-la
> http://catalyst.perl.org/calendar/2007/16) for their business logic
> specific methods? (Well those that use DBIx::Class as their model
> anyway)
>
> Thanks for the Help Matt, it's certainly made me think.

You're very welcome.

As far as DBIC goes, yes I subclass DBIC::RS - actually I've built out a
common DBIC "library" that I use in my DBIC models that provides common
base classes for DBIC and DBIC::ResultSet, and a standard set of
Exceptions. The library provides come really common filtering facilities
for my apps like "active" flag and "valid_from"/"valid_to" date ranges
for records.

I then use a custom ResultSet class via __PACKAGE__->resultset_class
(that subclasses the library's base RS class) in almost everyone of my
DBIC classes, because eventually I come to a point when I need to
implement custom RS methods.

Something like...

package MyCustomer::Schema::Cart;
use base qw/ MyCompany::DBIC::Base /;

...

__PACKAGE__->resultset_class('MyCustomer::Schema::CartRS');


...

1;

package MyCustomer::Schema::CartRS;
use base qw/ MyCompany::DBIC::ResultSet /;

...

1;

v/r
-matt pitts

spacer
Profile | Posts (21)
Home > People > Matthew Pitts