On Tue, May 3, 2011 at 8:04 AM, Kirk <[email protected]> wrote:

>
> If you can't tell at a glance is a variable is local or a field without an
> aid, your method is most likely way too large.
>

Yeah, I know XP people love this kind of one liners, but it doesn't really
fly in the real world.


> Variants of the hungarian notation are just plain wrong. Variables should
> reflect purpose, not type. I refer you to Uncle Bob.
>

Please, no, refer me to someone who actually writes large scale software
more than books.

Alexey gave a few examples where Hungarian Notation is useful, some others
that I came upon recently was in code that was manipulating file names and
path names. Using names such as fileString, filePath and fileBaseName helps
a lot, and that's Hungarian Notation.

I'm sure even you will find occurrences of such names in your code.

-- 
Cédric

-- 
You received this message because you are subscribed to the Google Groups "The 
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/javaposse?hl=en.

Reply via email to