> ColdFusion is soooo dynamic that when you talk about things > that "relate" to other languages, it is more in philosophy > than practice. > When I say "Constant" I don't mean a value that never > changes, I mean a value that should not be changed by the > user. I mean a value that does not change from instance to > instance (basically a static value). Like wise, when you say > a "public" or "private" method - since those can so easily be > hacked - it is only a philosophy, a "suggestion" - a contract > the user makes with the application. > > It's all philosophy, don't worry about how things actually > port from one language to another.
I would say that the approach of using accessors to access private member variables is closer, in philosophy, to how constants behave in other languages. In addition, I think that this approach is safer than the use of public member variables as constants. And by safety, I don't mean anything related to security, or hacking, or anything along those lines. OO best practices are what they are because they help protect the developer from himself, not because of security requirements. To the extent that these best practices can be emulated in CF, I think they should be. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore and Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260790 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

