Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Understanding Catalyst

by QuillMeantTen (Friar)
on Oct 03, 2015 at 16:22 UTC ( [id://1143719]=note: print w/replies, xml ) Need Help??


in reply to Re: Understanding Catalyst
in thread Understanding Catalyst

In this application I did not use a database, I used cookies and the $c->session hash to manage everything, would it be more appropriate to put all the manipulations inside the Model instead of the controller?

Replies are listed 'Best First'.
Re^3: Understanding Catalyst
by sundialsvc4 (Abbot) on Oct 04, 2015 at 00:45 UTC

    I’m not sure that the MVC paradigm really addresses that concept very well.   If the application has no persistent storage, I’m not sure if one would say that it has a Model.

    However ... “there are no absolutes.”   MVC, like everything else, is a guideline not a mantra.   If you have developed something that works cleanly for you, I would not redesign it for the sake of philosophy.   :-)   Others may weigh-in with differing opinions.

      Model != Storage. Model == Data. Google search API is a model, for example. A weather service is a model. sub d10 { 1+int(rand(10)) } is a model.

        In your example, shouldn't the sub d10 live in another file than the Controller/(Root|whatever).pm?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2024-03-28 09:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found