Dana, Congrats for having the courage to make the leap.
Your sketch looks pretty good. I think you have the base for your application. A few points: 1) If you use modelglue/coldspring to create your objects, it will store them inside the application memory space. There is no need to set the components into the application scope. You will either get the object from getModelGlue().getBean('foo'); or as a dependent object. 2) If your application becomes complex, you might need additional objects. DAOs and Gateways are commonly used classes of objects. However, in an application, you will probably need others. Remember, Every problem can be solved by adding another level of indirection, apart from the problem of too much indirection ;) DW On 7/2/07, Kowalski, Dana A ERDC-CERL-IL Contractor < [EMAIL PROTECTED]> wrote:
Hi, I'm still new to a lot of OO stuff and coding CF procedurally for a few years, and I had some questions! I'm trying to migrate this app I have to OO and run it under model-glue 2.0 (if that matters). It is a to-do list manager, similar to remember the milk et al, but in CF and run locally mostly for my dev tasks. Anyhow, I ALWAYS get tripped up in architecture when it comes to OO. If someone had a few minutes to scan the below and offer any opinions/advice it would be appreciated, I'm very green to this so shouting is acceptable :) Breakout ========= List Object - Would handle the overall lists. Stored in application.x + dao + gateway List Item Object - would handle specifically items in a list, and I guess would be a dependancy of the list object? Stored in application.x +dao +gateway User Object - would store username, roles, email etc. Stored in session.x +dao +gateway UserSecurity - would take a user object and perform password changing, role based security, etc. Stored in application.x You are subscribed to cfcdev. To unsubscribe, please follow the instructions at http://www.cfczone.org/listserv.cfm CFCDev is supported by: Katapult Media, Inc. We are cool code geeks looking for fun projects to rock! www.katapultmedia.com An archive of the CFCDev list is available at www.mail-archive.com/cfcdev@cfczone.org
-- "Come to the edge, he said. They said: We are afraid. Come to the edge, he said. They came. He pushed them and they flew." Guillaume Apollinaire quotes You are subscribed to cfcdev. To unsubscribe, please follow the instructions at http://www.cfczone.org/listserv.cfm CFCDev is supported by: Katapult Media, Inc. We are cool code geeks looking for fun projects to rock! www.katapultmedia.com An archive of the CFCDev list is available at www.mail-archive.com/cfcdev@cfczone.org