Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^6: Understanding Catalyst

by Your Mother (Archbishop)
on Oct 05, 2015 at 11:32 UTC ( [id://1143799]=note: print w/replies, xml ) Need Help??


in reply to Re^5: Understanding Catalyst
in thread Understanding Catalyst

Yes. It would either be in MyApp::Model::Dice or *much* better in a Games::Dice module that has nothing to do with MyApp and is used via model glue like Catalyst::Model::Adaptor.

I am trying to write a reply to your original post but it’s pretty long and I might not get it done.

Replies are listed 'Best First'.
Re^7: Understanding Catalyst
by Anonymous Monk on Oct 05, 2015 at 21:49 UTC

    via model glue like Catalyst::Model::Adaptor.

    I don't understand why that would be necessary ... it seems gratuitous

      It beats the crap out of 100 undecorated function calls and use|require statements sprinked all over the place and even embedded in the templates with contorted logic to surface instead of just being in [% c.model("WhatWhat").call %] and then something impossible to repurpose, let alone trivially change, with a simple back end swap. c.uri_for() might seem gratuitous too if you’ve never grown an app that needed testing, flexible deployment, or midstream changes that could otherwise be trivial. :P

        It beats the crap out of 100 undecorated function calls and ... :P

        What does that mean?

        Why would you need use/require embedded in templates?

        c.uri_for() might seem gratuitous too if you’ve never grown an app that needed testing, flexible deployment, or midstream changes that could otherwise be trivial. :P

        uri_for is one function, its not an entire new namespace whose only reason to exist is so some other name space can register a model with catalyst -- why does it need an extra class to inherit from an adaptor?

        The answer may seem dead obvious as "beats the carp" but could you elaborate?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1143799]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2026-02-18 03:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.