Joseph Flanigan wrote:
<cfcomponent hint="RouletteTable" extends="MachII.framework.Listener"><cfset _player = "" /><cfset _bet = CreateObject( 'component', 'Roulette.model.Bet' ) /> <cfset _history = CreateObject( 'component', 'Roulette.model.History' ) /><cfset _history.init() />
That is from a sample application called Roulette that was written a couple of years ago. Again, the term of sample application is defines exactly what it is - a sample application to view at your own risk. Your example(s) is/are not from the official *core* framework code as I requested.
FYI, I did take a peek in the updated version of the Roulette application for the 1.1.0 release and did not see any variables names that start with underscores. The original version pre-dates my involvement with Mach-II and therefore I do not have much background information on the original development. I do not recall discussing changing the variable names that start with underscores per se for the updated version. However, Dave Ross did the update/cleanup for 1.1.0 and I can understand why this was changed.
Everyone knows that applications go through a process of evolution - this includes Mach-II and any old sample applications. I could write an application that uses or does not use Mach-II and use underscores to start my variable names - still doesn't mean it is best practice. To quote from old sample applications is like trying to implement locking techniques on MX7 from CF5 days - things just plain evolve.
At this point, I would say that we should just agree to disagree and leave it at that.
-- Peter J. Farrell :: Maestro Publishing http://blog.maestropublishing.com Rooibos Generator - Version 2.1 Create boilerplate beans and transfer objects for ColdFusion for free! http://rooibos.maestropublishing.com/ Member Team Mach-II - It's coming...we're in a code freeze! ---------------------------------------------------------- You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email. CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com). An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
