On 6/14/07, Nathan Strutz wrote: .... > Of course there arguments the other way. For instance a config object with > an unknown or ever-changing number of params it reads from a database or xml > file would not be as helpful to you if you had to constantly add and remove > getters and setters every time you needed to add and remove parameters from > your evolving application. For this case alone I think I would use the > universal set()/get() methods, or maybe just a plain old struct ;)
"An unknown or ever-changing number of params" Sounds like development. =] It's all a mix anyways. Be clear and use patterns and whatnot, and what difference does it really make? Drop down a level, pop up a level... consistent doesn't mean everything is the same-- Well, sorta it does, but I like the def that means "coherent" (ironic, neh? ;). It's all "processed" anyways, I don't see what one process offers that you couldn't implement in another process. Want to validate the input? You have to do that if you use setValue(someThing,else) or setSomeThing(else), either way. At least the case maches with setValue(someThing, else), neh? Yeah, FWIW, I'm liking the setValue() a whole lot more than setName(), etc.. But I do use both. Bad myself, bad! Eh. That's life, especially when you don't Control Everything (or in my case, just cuz). I know, this is one of those religious types arguments, been 'round, be 'round, etc.. Please take these comments in that context. I'm spiritual, not religious. ;) Guess I could be coding for someone who can't read source, right? Yeah... but how far do you go? I've gone far enough, here. (Opinions Subject to change, of course & BTW =]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion MX7 and Flex 2 Build sales & marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281198 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4