Got Head First Java at the weekend (good recommendation Hal :-)

If you haven't got it, get it... it's funny and although I have only
been able to flick through it at the moment.

It's done a lot more to help me get my head round OO stuff than getting
Core Servlets and JavaServer Pages (JSP) Book I tried a year ago (good
book, bit above my head tho)

-dc

-----Original Message-----
From: Mike Brunt [mailto:[EMAIL PROTECTED]
Sent: 18 November 2003 15:08
To: CF-Talk
Subject: RE: OO Design

Deanna, one thing I have found helpful in thinking more in OO style
terms with CFMX is the Mach-II framework, which evolved around the OO
concepts afforded by CFMX.  There is a good insight in this article by
Sean Corfield, which analyzes a sample app created to demonstrate
Mach-II.

http://www.webapper.net/index.cfm?fuseaction=Fuseblog.ShowComments&Artic
leID
=20030920095757

Hth.

Kind Regards - Mike Brunt
Webapper Services LLC
Web Site http://www.webapper.com
Blog http://www.webapper.net

Webapper <Web Application Specialists>

-----Original Message-----
From: Deanna Schneider [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 18, 2003 6:28 AM
To: CF-Talk
Subject: SOT: OO Design

Hi Folks,
I'm trying to get my head around OO design for CF and I have a ton of
questions, of course. I'll try to keep them limited, as they're sort of
off-topic (though not entirely, because whatever I have to design I have
to build in CF).

Here's my first basic question:
When you're designing an object that includes a multiple has-a type
relationship, do you typically build the objects such that their is an
intermediate "collection" type object? For example, I'm working on a
project management system. It involves tasks. Tasks can have 0 to many
"consumables" associated with them.

Do I have one object "Task" and one object "Consumable" with the
consumable object having both a "getOne(consumableID)" and a
"getAll(taskID)" method? Or, do I have an intermediate "ConsumableList"
object that takes a taskID and gets all the consumables associated with
that task by calling a method in the Consumable object.

Does that make sense?

Thanks.
-Deanna

---------------------------------------------------------
Deanna Schneider
UWEX-Cooperative Extension
Interactive Media Developer

  _____


[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to