[Catalyst] [OT] ASP.NET MVC

John Napiorkowski jjn1056 at yahoo.com
Thu Dec 13 05:42:37 GMT 2007


--- Jonathan Rockway <jon at jrock.us> wrote:

> 
> On Wed, 2007-12-12 at 09:18 +0200, Octavian Rasnita
> wrote:
> > Hi,
> > 
> > I haven't read anywhere that : Local is
> deprecated, and I use it very often. 
> > Why is it deprecated? I found it works very well,
> and it is the most simple 
> > solution.
> 
> Who told you this?  It's not.
> 
> Local is theoretically a special case of chained
> (not implemented that
> way, but it could be)...  Feel free to use Local if
> it meets your needs.
> 
> Regards,
> Jonathan Rockway

The error originate with me, I saw on IRC sometime ago
a poster being told to stay away from :Local and to
prefer :Path instead.  Maybe it was for a particular
usage, but the impression I received was that although
not official deprecate it was not considered a good
practice.  Thank you for correcting the error.

As to your comment about :Local being a special case
of Chaining, if you could talk to that I'd appreciate
it.   I didn't understand that :Local would dispatch
through multiple controllers... but maybe I didn't get
the gist of your thought.  Could you clarify what you
meant my that?  Because when I encounter people new to
Catalyst and getting interested, it seems like the
confusion about what type of Action Attribute to use
and how to arrange controllers is a big barrier.  I
know it might seem like a bit of a silly thing to get
stuck on, but I know of two people that gave up on
Catalyst because it seemed to them to be too many ways
to do a very straightforward and simple thing, such as
map a URI to a controller, while potentially capturing
path arguments.

My original comment that started this was how I
noticed the Microsoft MVC framework they are
distributing is using a standalone dispatching class
to build up a URI dispatcher.  I've noticed in all my
MVC research over the past year that this model is
very common.  Catalyst is doing things a little
different here and I think there is power to our
model, but confusion as well.  So I was hoping to
generate some discussion about that and maybe it could
lead to a wiki page or POD or something to give
newbies a little guidance as well as offer some
general advantages to the Catalyst system.

--john


      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs



More information about the Catalyst mailing list