I use it for complex types as it helps you not make errors with complex variables: e.g. stObjects = A structure aObjects = an array of objects qryObjects = a query lObjects = a list
for variables that are simple I am less bothered about e.g. sTitle= a string title nID = a number bPblished = a boolean As Gert mentione with other languages you usually have the IDE know what type it is and help you with conent assist etc. Not sure if this is with other developers but usually you have to loop through complex types and having the notation helps me when I am reading the code: <cfloop collection="#stObjects#" item="s"> <cfloop from="1" to"#ArrayLen(aObjects)" index="a"> <cfloop list="#lObjects#" index="l"> Not sure why people get so heated about this, as I think this is perfectly readable and helpful Regards Mark Drew On Fri, 24 Dec 2004 09:38:53 +0100, Gert Franz <[EMAIL PROTECTED]> wrote: > > No, no, no, no, no!!!! Even Microsoft have given up on this practice > as being old-fashioned and causing confusion and making code hard to > read! > > Well i don't agree. Because c# is using typed variables, so the ide > knows what type it is or has to be. The same with delphi, c++ aso. But > when you use a language that don't cares about types it's a quite good > advice, i guess. > And if microsoft gives up sthg. it does not mean that i have to do it > too... > > > Hungarian notation is a *terrible* practice! It makes code hard to > read and it makes maintenance *much* harder! > > Personally i loved the Hungarian notation. In it's detail it could > become complicated and generate unreadable code, but if you use a small > part of it it's quite handy. > > Take this code for eg. > > <cfset var = form.ProductNumber> > > If you write > > <cfset sVar = form.ProductNumber> then you know that the ProductNumber > not only contains numbers but characters too. > > Well it's only my idea, i use it for about 10 years now and it seems to > work. > > >Bullshit! This has been totally discredited. Microsoft were the most > adamant proponents of Hungarian notation - go read their C# coding > >guidelines: they decry Hungarian notation! > > As mentioned. If you have a compiler or a IDE that checks the types > (like c#) i agree, but if not, then i guess my approach is easier. > > <cfgreetings from="[EMAIL PROTECTED]" to="reader" location="bern" > country="switzerland" function="railo core developer" message="merry > xmas"> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Special thanks to the CF Community Suite Silver Sponsor - RUWebby http://www.ruwebby.com Message: http://www.houseoffusion.com/lists.cfm/link=i:4:188743 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

