Wally, I'm not so sure that "better" exists in an abstract way outside of a particular context. Certainly there are some contexts in which using a value object may be better, but that's as far as I'd go. Yours is that you might port the application to Flex in the future.
Using a combination of Transfer, ModelGlue and Coldspring is better to me because it speeds up my development and makes it very easy to make changes down the line, but this only applies to certain projects, and it may not apply to another developer. On Sun, Apr 27, 2008 at 7:55 PM, Wally Kolcz <[EMAIL PROTECTED]> wrote: > I have been learning about OOD in CF and design patterns and have managed > to incorporate some of them into my sites to handle problems. I develop > using Model-Glue, ColdSpring, and Reactor and have been using Reactor to do > my database interaction. After reading the docs on Reactor, I learned about > Value Objects, Transfer Objects, Active Record Design Pattern. I already was > versed on DAOs and Gateways. Recently I am getting more into Value Objects > and writing my CFCs to incorporate them (VO,DAO,Gateway) so that I can, in > the future, port them all to my Flex or Flash applications. > > > > Now having said all that…I know that this way is the better way of doing > things and I know that it will make my Flex development easier to migrate > to, but why is it a better way (other than the Flex thing which other > members of my CF team won't be doing)? When someone asks me, "Why should I > do it that way?", what is my best response? Up until now, I have been > writing my CRUD (My DAO) in one CFC and my Lists (My Gateway) in another. > Why introduce a VO (Bean) into the mix? > > > > I would both like to better understand why this is a better way of doing > things (benefits, examples) so I can share it with my other developers. > > > > Thanks. > > > > -- Nando M. Breiter The CarbonZero Project CP 234 6934 Bioggio Switzerland +41 76 303 4477 [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CFCDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfcdev?hl=en -~----------~----~----~----~------~----~------~--~---
