> > 2) To use the component, you create <cfproperty> and > > <cffunction> tags, which are analogous (although not the same > > as) properties and methods within an object > > While cfproperty values exist in metadata, they do not create > real values. Ie, <cfproperty name="name" value="ray"> will > create data in the metadata, NOT in the This scope or unnamed > scope. Basically, don't make the mistake of thinking > <cfproperty> creates 'real' values.
So what is the point of the cfproperty tag? What is the point of metadata? And how do you use the data that is created using cfproperty? > > It's hardly a Java (or any other type of) object is it? I > > Heh, I say if you want Java, use Java. ;) I would, but, I think it's easier to create re-usable code if you don't use 2 completely different languages to do one thing. I want to use CFC's, so let's start using them properly! > > Design patterns of CFC's would be a useful place to start. I > > noticed on cfczone.org that this was mentioned... Anyone got > > any further with this? Would be good to get a site up about > > that (as CFC's appear to be really badly used and implemented > > a lot of the time imho) > > Just curious - but where are you seeing bad examples of CFCs? > While this list is active, I'm not seeing CFCs used a lot in > the 'wild'. CFCZone has gotten 2-3 submissions, but not > nearly as much response as CFLib did when CF5 was released. It's more that people who start to use CFC's use them wrong (and I mean obviously wrong). Treat them like function libraries and not components (I'm not going to use the word objects here!). I do think that MACR has missed out on explaining them properly and using them properly in code. Most people still do CF5 style coding and don't use CFC's to their potential. I haven't seen CFC's used much in the wild (in the minor Open Source projects I've seen...), but it strikes me that we need a list like this and more resources to begin to use them properly! The Design Patterns article in CFDJ was very interesting, probably most interesting to me was the "hack" at creating an abstract method (function) by putting a <cfabort> in the function... Beginning to get a better idea of how I can use them! Paul ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [EMAIL PROTECTED] with the word 'unsubscribe cfcdev' in the message of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by Mindtool, Corporation (www.mindtool.com).
