views:

383

answers:

5
+8  A: 

I loathe it like the plague it is.

chaos
I think a lot of people share your view! I have some friends who think the same way.
darthnosaj
+3  A: 

Just talked about it the other day:

http://stackoverflow.com/questions/1183407/should-i-use-the-java-naming-convention

No need. Let Hungarian notation die. Spend your time learning a decent IDE instead.

duffymo
A: 

It fits in however you see it fit in. If you like it - use it. The only advantage that i saw in Hungarian notation is the variable type being embedded into the name of that variable. Honestly, with compilers that are out there right now, i do not see this as a necessity. Most will show you the type when you hover over a variable or as you type it in. The major problem with it is that when the variable type changes, you have to refactor your variables as well as the rest of the logic, which is an extra pain. And to answer the question, i have never used it in Java or any other language other than Delphi.

Sergey
+3  A: 

Hungarian notation has no place in Java. The Java API does not use it, and neither do most developers. Java code would not look like Java using it.

emddudley
+1  A: 

If you make the semantic investment of using a statically typed language like Java, further investment in hungarian notation is wasted effort. It can be valuable in dynamically typed languages or loosely typed languages, but the compiler and all modern IDEs will enforce type checking without all the visual noise.

Tim Howland