So, I'm not a huge fan of Hungarian Notation. Today an Android Developer from my company dropped this link to the official advices re Android development, and I was surprised by the fact, that they find it useful to start all field names with m
.
I think, the only case where these mSomeField
names may be useful is an absence of code highlighting, in this case it's easier to see which variables are local, and which of them are not. But these days any IDE can show this, right? So, why are these rules and conventions needed in up-to-date Android code?
UPDATE: Okay, my bad, looks like these advices are for contributors (in this case it makes sense, they want to keep the same way of coding). Anyways, I was told, that this is often used in Android projects. If so, the question is about those projects.