Naming convention: field starting with "m" or "s"

Posted by Noya on Programmers See other posts from Programmers or by Noya
Published on 2012-11-26T10:20:43Z Indexed on 2012/11/26 11:33 UTC
Read the original article Hit count: 181

Filed under:

Hope this question hasn't posted yet...

I saw lot of code (for example some Android source code) where fields name start with a "m" while static fields start with "s"

Example (taken from Android View class source):

private SparseArray<Object> mKeyedTags;

private static int sNextAccessibilityViewId;

I was wondering what "m" and "s" stand for... maybe is "m" mutable and "s" static?

Since it seems that is a largely adopted pattern do you know if there some literature about this kind of naming convention?

© Programmers or respective owner

Related posts about naming