Sigh.... :o)

Rick

> -----Original Message-----
> From: Mike Kear [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 06, 2006 7:35 PM
> To: CF-Talk
> Subject: Re: OOP, why me?
>
>
> You use a bean for doing things with a single instance of
> something.  With a
> single user.  wIth a single form submission.   WIth groups of records (or
> 'objects' we really should say because it's not always records out of a
> database we're dealing with)  the are arrays, structs,  queries
> etc which is
> more of what you are used to doing.
>
> For example in my CMS,  when i need to display a page.  I create a bean
> ("instantiate" is the jargon term for it)  containing the specs
> of the page
> - the page title, the next url and title up in the hierarchy (for
> making the
> breadcrumb), the access level required to view the page, the teaser text,
> whether it has sidebars, image name,  stuff like that for the
> page, because
> it's only one page i am dealing with right now.   And also I make a query
> object (using the PagesDAO cfc)  containing all the details of the pages
> underneath this one, for the navigation around the page, or the 'related
> links' section of the page.  and another query containing the
> actual content
> - the paragraphs of text or the images in the image gallery etc.
>
> Beans are for dealing with one single instance of an object.  If you're
> dealing with groups of things, you're in much more familiar territory with
> lists, arrays, structs and queries.
>
> Cheers
> Mike Kear
> Windsor, NSW, Australia
> Certified Advanced ColdFusion Developer
> AFP Webworks
> http://afpwebworks.com
> ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month
>
> On 3/7/06, Rick Faircloth <[EMAIL PROTECTED]> wrote:
> >
> > What you're saying does make sense...I'm just looking
> > for something that takes the approach of saying...."Ok.
> > You can build the app the traditional way like this...but here
> > is another way.  Let's do this *one* step at a time and
> > compare how it could be done with traditional methods (shown)
> > as opposed to the OOP way (also shown, of course).
> >
> > Also, your "bean" approach is fascinating...but what a bean?
> > Is it like an array or session-type variables that exist in memory
> > and are available everywhere?  And to have to reference
> > every user in a table, or to know about them reference them
> > as in the "Kear" bean, seems strange and difficult.  Sounds
> > like you'd have to memorize all the users in your table
> > to reference them...?!?!?! (Obviously not getting it...)
> >
> > (I probably need a diagram... ;o)
> >
> > Rick
> >
> >
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234354
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to