with all due respect, it's not quite just a subjective matter :-)

i *really* like visual clues to denote the scope of variables etc, so i used to use the "m" prefix. however, i stopped, and now i use an explicit "this" to denote a reference to a data member.

why? well, if you use a prefix, then bean-centric code can't derive the conventional names for getters and setters from your members.

private int mWidth -> getMWidth () and setMWidth(), yuck

private int width -> getWidth () and setWidth (), better



I love these threads where people throw in their opinions as if they're fact. THIS IS A COMPLETELY SUBJECTIVE MATTER. If you like the prefixes, use them. If you don't, don't. It's that simple. There's really nothing to argue about here. There's is no "good", "bad", "right", or "wrong" way about this. Do what works for you and be consistent.

Moving on...


--
jason.vp.engineering.particle

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to