implicit invocation may or may not "lead to
seperation of model and view" but it's nothing the same as MVC. Just
thought I'd mention that. ~Simon Simon Horwith CTO, eTRILOGY ltd. Member of Team Macromedia Macromedia Certified Master Instructor http://www.cfstandards.org Salvatore Fusto wrote: -- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ CFDeveloper Sponsors and contributors:- *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by activepdf.com* *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com* *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com* To unsubscribe, e-mail: [EMAIL PROTECTED]hello SpikeIf you don't already understand something of MVC from a design and implementation point of view you will struggle to figure out which part of the app belongs to which part of MVC when using either Mach-ii or Fusebox. Neither of those provide any sort of clue as to the answers to Sam's question.this is clear!! if i don't know oop, i can't use it only writing in java!!Having said that, I would agree that Mach-ii does provide a good framework around which to construct MVC applications. I can't speak for Fusebox because I've not used the latest versions, and I've never tried to use MVC with Fusebox 2 and below.this is what, peraphs not very clearly, i've said: any tools lead to use MVC better then others, but the question is that a programmer has to know MVC in abstract!I mentioned Mach-ii because it is based on implicit invocation architecture, and this leads to separation betwen model and view. best regards salvatore ----- Original Message ----- From: "Stephen Milligan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 01, 2004 5:42 PM Subject: RE: Re: [ cf-dev ] MVCI would have to put in a big caveat here. If you don't already understand something of MVC from a design and implementation point of view you will struggle to figure out which part of the app belongs to which part of MVC when using either Mach-ii or Fusebox. Neither of those provide any sort of clue as to the answers to Sam's question. Having said that, I would agree that Mach-ii does provide a good framework around which to construct MVC applications. I can't speak for Fusebox because I've not used the latest versions, and I've never tried to use MVC with Fusebox 2 and below. Spike -------------------------------------------- Stephen Milligan Code poet for hire http://www.spike.org.uk Do you cfeclipse? http://cfeclipse.tigris.org-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]o.uk] On Behalf Of Salvatore FustoSent: Tuesday, June 01, 2004 6:46 AM To: [EMAIL PROTECTED] Subject: Re: Re: [ cf-dev ] MVC no, of course; i simply say that some frameworks, expecially mach-ii and its implicit invocation, help to develop apps follwing MVC, no more. i've said that a design pattern is a concept. may be my english is not too clear!! hope to be clear regards salvatore ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 01, 2004 4:31 PM Subject: Re: Re: [ cf-dev ] MVCYou're not implying that it's important to use Fusebox orMACH II if you wantto implement design patterns, are you? If so, in the nameof all that is rightI must regretfully disagree with every fiber of my being ;) ~Simonhello, i would add my opinion to this interesting discussion. MVC is a design pattern, as many others. It is indipendent fromprogrammingand languages, so you can try to implement an app withthis pattern, fromscratch, with a procedural language too, but if you decide to use a framework such us fusebox or better mach-ii, you will belead to follow anmvc approach as well: in other words, not only isimportant to use the rightdesign pattern for apps, but is more important to use theright tools tooapply this patter (i could try to implement an app inCOBOL using MVC, but ido not think to obtain grat resuls). regards salvatore ----- Original Message ----- From: "Sam Clement" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 01, 2004 2:38 PM Subject: RE: [ cf-dev ] MVCThanks Spike. Any recommended books/resources? -----Original Message----- From: Stephen Milligan [mailto:[EMAIL PROTECTED]] Sent: Monday, May 31, 2004 4:57 PM To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] MVC When you run into a situation where one part of thesystem appears to beduplicating what another part of the system is doing itusually meansthat you have either not chosen the names for the methods/classeswell,or you have not modelled the functionality well. Inorder to figure outwhere things are wrong I usually boil it down to 'what is the onethingthat this component is suppposed to be doing'. In your case it looks like you want the model to beresponsible for thedata access for the Users and the ManagerUsers componentto figure outwhen to call each method in the model. I would normallycall the dataaccess component something like UserDAO and give it 4starting methodscalled createUser(), updateUser(), deleteUser() andgetUser(). Thosemethods may be renamed and added to later, but it'susually a safe placeto start. The controller component would probably have a method called processUserForm() that would inspect the form scope anddecide whatmethods needed to be called in the model to providesecurity checking,data validation, transfer object/bean creation etc. The controller is supposed to be deciding what happens in the application, so you ought to be delegating as much ofthe flow controllogic as possible to it. That's why I would only have 1entry method forthe Users CRUD operations. That method would probably call someprivatemethods such as validateUserForm() and checkPermission() which would do validation/security checking before calling the UserDAOcomponent to doCRUD operations as appropriate. Having said that, exactly how the components and methodsare designed isvery specific to the application at hand, so don't takethe above as thegospel on 'how to do it'. my 2 cents Spike -------------------------------------------- Stephen Milligan Code poet for hire http://www.spike.org.uk Do you cfeclipse? http://cfeclipse.tigris.org-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]o.uk] On Behalf Of Sam ClementSent: Monday, May 31, 2004 7:48 AM To: [EMAIL PROTECTED] Subject: [ cf-dev ] MVC I'm learning about the MVC methodology and looking for good resources for beginners. I've found some good stuff from Benoit Hediard (blogmx code) but would like some more 'theory put intopractice' type stuff.Currently I'm worried about not de-coupling my controllers>from the model layer enough. They basically seem to mirror eachother:Controller: ManagerUsers add/edit/delete user Model: Users Add/edit/delete user (maybe addauthenticate/islogged/isAdmin etc.)Is it wise to break up the model layer into smaller separate cfcomponents or is it best to create larger cfcomponents that encapsulate separate business processes? I guess the skill is knowing which trade-offs are worth it (overly complex components vs. simple de-coupled components but a more complex architecture with more dependencies). Any help appreciated. _____ Sam Clement ABOVE Studios Boutique Design Solutions 32 Clifford Street - Belmont Trinidad + Tobago - West Indies T: (868) 621 5159 W: abovestudios.com -- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive:http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/CFDeveloper Sponsors and contributors:- *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by activepdf.com* *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com* *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com* To unsubscribe, e-mail: [EMAIL PROTECTED]-- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive:http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/CFDeveloper Sponsors and contributors:- *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by activepdf.com* *Forums provided by fusetalk.com* :: *ProWorkFlowprovided byproworkflow.com* *Tutorials provided by helmguru.com* ::*Lists hosted bygradwell.com* To unsubscribe, e-mail: [EMAIL PROTECTED] -- These lists are syncronised with the CFDeveloper forum athttp://forum.cfdeveloper.co.uk/Archive:http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/CFDeveloper Sponsors and contributors:- *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDFprovidedby activepdf.com**Forums provided by fusetalk.com* :: *ProWorkFlowprovided byproworkflow.com**Tutorials provided by helmguru.com* ::*Lists hosted bygradwell.com*To unsubscribe, e-mail: [EMAIL PROTECTED]-- These lists are syncronised with the CFDeveloper forum athttp://forum.cfdeveloper.co.uk/Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ CFDeveloper Sponsors and contributors:- *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDFprovided byactivepdf.com**Forums provided by fusetalk.com* :: *ProWorkFlow provided byproworkflow.com**Tutorials provided by helmguru.com* :: *Lists hosted bygradwell.com*To unsubscribe, e-mail: [EMAIL PROTECTED]______________________________________ -- These lists are syncronised with the CFDeveloper forum athttp://forum.cfdeveloper.co.uk/Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ CFDeveloper Sponsors and contributors:- *Hosting and support provided by CFMXhosting.co.uk* ::*ActivePDF provided by activepdf.com**Forums provided by fusetalk.com* :: *ProWorkFlow provided byproworkflow.com**Tutorials provided by helmguru.com* :: *Lists hosted bygradwell.com*To unsubscribe, e-mail: [EMAIL PROTECTED]-- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ CFDeveloper Sponsors and contributors:- *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by activepdf.com* *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com* *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com* To unsubscribe, e-mail: [EMAIL PROTECTED]-- These lists are syncronised with the CFDeveloper forum athttp://forum.cfdeveloper.co.uk/Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ CFDeveloper Sponsors and contributors:- *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF providedby activepdf.com**Forums provided by fusetalk.com* :: *ProWorkFlow provided byproworkflow.com**Tutorials provided by helmguru.com* :: *Lists hosted bygradwell.com*To unsubscribe, e-mail: [EMAIL PROTECTED] |
- RE: [ cf-dev ] MVC Sam Clement
- RE: [ cf-dev ] MVC Stephen Milligan
- RE: [ cf-dev ] MVC Sam Clement
- Re: [ cf-dev ] MVC Salvatore Fusto
- RE: [ cf-dev ] MVC Stephen Milligan
- RE: [ cf-dev ] MVC Sam Clement
- Re: Re: [ cf-dev ] MVC simon
- Re: Re: [ cf-dev ] MVC Salvatore Fusto
- RE: Re: [ cf-dev ] MVC Stephen Milligan
- Re: Re: [ cf-dev ] MVC Salvatore Fusto
- Simon Horwith