new. =)
Chris Peterson
Gainey IT
Adobe Certified Advanced Coldfusion Developer
-Original Message-
From: Brian Kotek
Sent: Monday, July 09, 2007 10:27 PM
To: CF-Talk
Subject: Re: Init method and getters / setters in cfc
It's so trivial to generate the code for getters and setters that I
A lot of cfc's using init and 'good' OO practices have functions like
getDSN(), setDSN('Blah') littered throughout. Can I ask any guru out
there why you wouldn't use simple get('keyname') and
set('keyname','keyvalue') like the following?
cffunction name=get access=public output=no
expressed by Reed Exhibitions.
Visit our website at http://www.reedexpo.com
-Original Message-
From: Peterson, Chris
To: CF-Talk
Sent: Mon Jul 09 20:51:48 2007
Subject: Init method and getters / setters in cfc
A lot of cfc's using init and 'good' OO practices have functions like
getDSN
?
www.bennadel.com/ask-ben/
-Original Message-
From: Peterson, Chris [mailto:[EMAIL PROTECTED]
Sent: Monday, July 09, 2007 3:52 PM
To: CF-Talk
Subject: Init method and getters / setters in cfc
A lot of cfc's using init and 'good' OO practices have functions like
getDSN(), setDSN('Blah
Subject: Init method and getters / setters in cfc
A lot of cfc's using init and 'good' OO practices have functions like getDSN(),
setDSN('Blah') littered throughout. Can I ask any guru out there why you
wouldn't use simple get('keyname') and
set('keyname','keyvalue') like the following
Certified Advanced ColdFusion MX7 Developer www.bennadel.com
Need ColdFusion Help?
www.bennadel.com/ask-ben/
-Original Message-
From: Peterson, Chris [mailto:[EMAIL PROTECTED]
Sent: Monday, July 09, 2007 3:52 PM
To: CF-Talk
Subject: Init method and getters / setters in cfc
A lot
Skinner
To: CF-Talk
Sent: Mon Jul 09 21:25:16 2007
Subject: Re: Init method and getters / setters in cfc
I would add your component is now completely mutable. A developer can
add any data they want which may or may not be a big deal depending on
ones thinking on such things and what the component
: Tuesday, 10 July 2007 6:25 AM
To: CF-Talk
Subject: Re: Init method and getters / setters in cfc
I would add your component is now completely mutable. A developer can
add any data they want which may or may not be a big deal depending on
ones thinking on such things and what the component is meant
It's so trivial to generate the code for getters and setters that I don't
really see the point in having generic getters and setters like this. As Ben
says, you lose the API for your component. You have no type checking (if
that's your thing). You lose the ability to seamlessly change the getter
9 matches
Mail list logo