RE: Init method and getters / setters in cfc

2007-07-10 Thread Peterson, Chris
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

Init method and getters / setters in cfc

2007-07-09 Thread Peterson, Chris
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

Re: Init method and getters / setters in cfc

2007-07-09 Thread Robertson-Ravo, Neil (RX)
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

RE: Init method and getters / setters in cfc

2007-07-09 Thread Ben Nadel
? 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

RE: Init method and getters / setters in cfc

2007-07-09 Thread Andy Matthews
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

Re: Init method and getters / setters in cfc

2007-07-09 Thread Ian Skinner
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

Re: Init method and getters / setters in cfc

2007-07-09 Thread Robertson-Ravo, Neil (RX)
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

RE: Init method and getters / setters in cfc

2007-07-09 Thread Jaime Metcher
: 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

Re: Init method and getters / setters in cfc

2007-07-09 Thread Brian Kotek
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