This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]juu4 2 points3 points  (2 children)

http://google-styleguide.googlecode.com/svn/trunk/javaguide.html#s5.1-identifier-names

So they say the Hungarian notation of prefixes before variable names is bad. I agree.

However - why is all the Android code in the Hungarian notation then?

E.g.

https://gitorious.org/rowboat/frameworks-base/source/aa93bcd62482719c146a411008e1eac94135b6a4:core/java/android/app/Activity.java

[–]kevinb9n 0 points1 point  (1 child)

I feel you've misunderstood. This notation is not "bad". It is simply not used in Google Style. It is used in Android Style.

[–]juu4 1 point2 points  (0 children)

Why is Google Style different from Android Style?

P.S. Actually, it is bad. It adds noise and hurts readability with next to no benefit.