Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

decentralized control and coordination

by metaperl (Curate)
on Mar 24, 2010 at 20:41 UTC ( #830668=perlmeditation: print w/ replies, xml ) Need Help??

Catalyst has dispatch logic "scattered" everywhere as subroutine attributes. Contrast this with the centralized control in CGI::Application or CGI::Prototype

DBIx::Class coordinates table relations by isolating each table in a package. Contrast this with the single-file centralized modelling in DBIx::DataModel

App::Cmd figures out dispatch logic by looking for Yourapp::Command::* modules and loading them. Contrast this with the centralized, manual listing required in CLI::Framework.

And we have things like HTML::Mason and Template where control is decentralized and placed at the point of effect, in contrast with push-style templating systems which tend to centralize control in a single subroutine.


Comment on decentralized control and coordination
Download Code
Re: decentralized control and coordination
by ww (Bishop) on Mar 24, 2010 at 20:49 UTC
    And the sun comes up in the east?

    Sorry, but read that as shorthand for "your point is? Please elaborate"

Re: decentralized control and coordination
by IBlowGoatsSucker (Beadle) on Mar 24, 2010 at 22:29 UTC
    Catalyst has dispatch logic "scattered" everywhere as subroutine attributes. Contrast this with the centralized control in CGI::Application or CGI::Prototype

    It is like an ant-hill to a whale.

    DBIx::Class coordinates table relations by isolating each table in a package. Contrast this with the single-file centralized modelling in DBIx::DataModel

    X-Wings swarm in formation, Death Star is defeated.

    App::Cmd figures out dispatch logic by looking for Yourapp::Command::* modules and loading them. Contrast this with the centralized, manual listing required in CLI::Framework.

    The hard shell of the oyster conceals the shiny Perl inside. It feeds on slime yet brings forth beauty.

      wow, you are really helping people out with your replies. you're not a troll. nope, not a troll.

        Pot. Kettle. Black.

        A most insightful response, I must say. Thank you for making it so absolutely clear that I am not a troll (people get confused, you know?).

        You really should post more statements of this type, they benefit perlmonks.info and people like to read them. I am sure that whoever the PERL luminary was that you angered by (sic) "being a dickhead" will forgive and congratulate you, if only you can write more posts like this. You may even get a job out of it (I know you're desperately looking), bosses love troll-baiters!

        Trolltroller Rex
Re: decentralized control and coordination
by jdrago999 (Pilgrim) on Mar 27, 2010 at 18:55 UTC

    I prefer to "isolate" table relations in their own packages using Class::DBI::Lite. ASP4 allows me to keep my presentation-focused logic right there at the "point of effect" while stashing my business logic in output-neutral "Form Handlers". URL Routing (often subject to change) can be declared once within the config and managed by ASP4x::Router - becoming completely transparent to the pages or handlers they route to.

    Perl offers multiple ways to get the same thing done - depending on what you are trying to do. I dislike "action at a distance" so I avoid spreading things across too many places to look. I'm sure that in the case of Catalyst after a while a kind of "rhythm" emerges which helps you know where to find out where a particular URI would map to - but you could really trip yourself up if you weren't careful.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://830668]
Approved by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2014-12-29 13:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (188 votes), past polls