On 8/16/06, Marc Funaro <[EMAIL PROTECTED]> wrote:
I truly am curious to know how big a difference there is among everyone, on how they are calling their model when using CFCs. Hoping more people will chime in on this one.
Me too! I'd love to hear more opinions on this but I suspect we'll get more feedback on the *Fusebox* list :)
So then I guess the question is, if the MVC pattern is meant to truly isolate the three functions, isn't placing the calls directly to the CFCs in the controller circuit creating a situation where there's a dependency - the
Well, the controller is by definition dependent on the API of the model since it has to communicate with it. It doesn't matter whether your model is a Fusebox circuit or a CFC, the controller has to know how to interact with it.
To rephrase, shouldn't the controller be sending messages to a central model circuit, and have that circuit return back what's expected, without the
That would be reasonable for migrating a legacy application to use CFCs (just change each piece of the model circuit) but be careful of creating a delegate controller! If your model circuit is acting as a controller for the CFCs, then your controller circuit is simply delegating everything to another controller...
So at least one person here is using #2, and if he didn't want to venture into what he considers to be "bad practice", would actually use #1.
With Fusebox 5, using <cf:try> / <cf:catch> is perfectly reasonable - those are part of the standard skeleton application. So I expect more people to move from #2 to #3 with Fusebox 5. Remember that "best practice" changes over time...
But these questions still seem pretty valid to me before I forge ahead with that decision.
Oh, they are absolutely valid questions! I just like to know why folks are asking these sorts of questions (so I can tell how best to answer them - and as Simeon observes I will most often say "it depends" :)
However, I can also see that this is likely heading into off-topic territory for this list at this point, too.
Feel free to take it up on the Fusebox 5 list (or even the Fusebox 4 list or the Fusebox forums). Like I say, I'm interested in hearing more Fuseboxer's thoughts on this. -- Sean A Corfield -- (904) 302-SEAN An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Reactor for ColdFusion Mailing List [email protected] Archives at: http://www.mail-archive.com/reactor%40doughughes.net/ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
