Hungarian notation in Android naming conventions

So, I'm not a big fan of Hungarian notation . Today, an Android developer from my company refused this link to the official advice of Android developers, and I was surprised by the fact that they found it useful to start all field names with m.

I think the only case when these names mSomeFieldcan be useful is the lack of code highlighting, in this case it is easier to see which variables are local and which are not. But these days, any IDE can show this, right? So why are these rules and conventions necessary in the updated Android code?

UPDATE . Well, my bad one, it seems that these tips are for authors (in this case it makes sense, they want to keep the same coding method). In any case, I was told that this is often used in Android projects. If so, the question is about these projects.

+4
source share
1 answer

, .:) , , Android Linux C/++, , - ++ , Java- . IDE, - " ", .

0

Source: https://habr.com/ru/post/1537471/


All Articles