On Fri, 24 Dec 2004 08:50:35 +0100, Gert Franz <[EMAIL PROTECTED]> wrote:
> I personally agree with you. It's allways a good practice to use a
> prefix. The hungarian notation in good old c times was very usefull.

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!

Hungarian notation is a *terrible* practice! It makes code hard to
read and it makes maintenance *much* harder!

> For instance Variables.sName, or Variable.fSalary for a string and a
> float variable.

Because this makes code HARD to read.

> The code can be easally read.

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!

> And it is a huge performance boost, if you prefix all your variables
> with the scope their in.

OK, yes, we're in agreement here. Every argument should be prefixed by
"arguments." and every instance variable should be prefixed by
"variables." - and local variables DO NOT NEED ANY SORT OF PREFIX!

> We at railo have designed a handy approach. You can force the developer
> to use scope-prefixes if you define the setting "scope cascading" to
> "strict" in your railo.xml. This means that you have to define the scope
> of your variable, or an exception will be raised.

Excellent idea!!!!! Thank you for doing this!
-- 
Sean A Corfield -- http://www.corfield.org/
Team Fusebox -- http://www.fusebox.org/
Breeze Me! -- http://www.corfield.org/breezeme
Got Gmail? -- I have 6 invites to give away!

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:188738
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to