That was a choice made at Sun when they wrote the Java core classes, our choice was to use a prefix. That's all. It's NOT going to change.
On Tue, Feb 23, 2010 at 12:07 AM, Kaj Bjurman <kaj.bjur...@gmail.com> wrote: > I don't buy that argument since since all of the core classes in Java > are written without prefixes of any kind, and many of the classes were > implemented before IDEs became popular. I do also think that the > convention would have been added to the "Code Conventions for the Java > Programming Language" (http://java.sun.com/docs/codeconv/html/ > CodeConvTOC.doc.html) if Sun thought that it added some great value. > > One thing that I have observed (it could be 100% wrong, but it's based > on reading Java code since the language was released in 1996) is that > most people who think they need prefixes and odd conventions write too > long methods, or too complex logic, and often in combination with > classes that are doing more than one thing. There's not need of > prefixing if your methods are short and easy to read (IMHO). > > > > On 22 Feb, 17:05, Romain Guy <romain...@android.com> wrote: >> I myself am not fond of prefixes, especially since languages like Java >> already have "this." when you need to distinguish local vars vs >> members. Also, modern IDEs highlight fields differently from local >> variables. >> >> It does make sense however on a project like Android where not >> everybody is necessarily using an IDE. And it's just a coding >> convention :) >> >> >> >> >> >> On Sun, Feb 21, 2010 at 10:20 PM, Frank Weiss <fewe...@gmail.com> wrote: >> > I'm one of those guys who think scope prefixes, like "m", are more trouble >> > than they're worth. The fact that you had to explain it to a newbie makes >> > me >> > smile. >> >> > On Sun, Feb 21, 2010 at 10:04 PM, Romain Guy <romain...@android.com> wrote: >> >> >> It stands for "member." I believe the use of an "m" prefix with MFC >> >> has nothing to do with the name MFC either, but rather to identify >> >> variables that are class members as opposed to local variables for >> >> instance. >> >> >> On Sun, Feb 21, 2010 at 9:52 PM, Christ <wutie...@gmail.com> wrote: >> >> > Hi guys, >> >> >> > I saw many sample codes that each variable contains the 'm' prefix. I >> >> > don't know what this m means. >> >> > I have two-year experience in MFC. Each variable has 'm' prefix to >> >> > tell you that I'm the one variable of MFC component. (m stands for >> >> > MFC). >> >> > So...can anybody answer me this question? >> >> >> > Regards, >> >> > Christ >> >> >> > -- >> >> > 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 >> >> >> -- >> >> Romain Guy >> >> Android framework engineer >> >> romain...@android.com >> >> >> Note: please don't send private questions to me, as I don't have time >> >> to provide private support. All such questions should be posted on >> >> public forums, where I and others can see and answer them >> >> >> -- >> >> 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 >> >> > -- >> > 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 >> >> -- >> Romain Guy >> Android framework engineer >> romain...@android.com >> >> Note: please don't send private questions to me, as I don't have time >> to provide private support. All such questions should be posted on >> public forums, where I and others can see and answer them > > -- > 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 > -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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