Hungarian certainly isn't the end-all, be-all to naming conventions.
But I'm still looking forward to the day when someone who is objecting
to it does so with an informed opinion. It seems everyone takes a look
at the Windows API and thinks that they then know just what Hungarian
is, and all that it can be.
I was using the awful M$ convention commonly known as Hungarian Notation
as an obvious example of the pitfalls of including the type in an
attribute or method name.
I admit that the only examples of it I've seen are MS code or have been
stipulated by project technical managers who obviously think that the MS
form is really good. If you have a reference to a definition that doesn't
follow the M$ naming nastiness I'd be interested to see it.
However, my inclination is and has always been to follow the type of
naming conventions promoted by K&R and especially Kernighan & Pike, where
the name describes what the variable is used for or, for a function or
method, what it does, e.g if it holds an account total its called
account_total, accountTotal or even ACCOUNT-TOTAL depending on language
and independent of variable type. It goes without saying that in COBOL
the same logical variable could have several definitions depending on
whether its in an input screen, database record, print line, etc.