[android-developers] Re: What does the prefix 'm' stand for ?

2010-02-24 Thread Jason Proctor
that's a *great* feature. There is an option in Eclipse to force the use of 'this.' for members. I have that option set and don't use the prefix. -- jason.vp.engineering.particle -- You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: What does the prefix 'm' stand for ?

2010-02-23 Thread Kaj Bjurman
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

Re: [android-developers] Re: What does the prefix 'm' stand for ?

2010-02-23 Thread Romain Guy
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

[android-developers] Re: What does the prefix 'm' stand for ?

2010-02-23 Thread Bob Kerns
Perhaps you should consider that the people who came up with Android's convention had a lot more Java experience under their belt than the people who came up with Java's convention had, way back when. I'm not saying that makes the case, just that your argument-from- authority here falls flat.

[android-developers] Re: What does the prefix 'm' stand for ?

2010-02-23 Thread Zsolt Vasvari
There is an option in Eclipse to force the use of 'this.' for members. I have that option set and don't use the prefix. On Feb 23, 12:39 am, Bob Kerns r...@acm.org wrote: I'm not fond of 'this.member'. It seems to combine the worst of both worlds -- an optional prefix that may or may not be

[android-developers] Re: What does the prefix 'm' stand for ?

2010-02-22 Thread Bob Kerns
I like that document, but I'd add a caveat: don't go all gung-ho style police. (I think that fits well with the overall tenor of the document, but is worth being made explicit). The point of style conventions is to make things easier, not provoke arguments. There is, in fact, some benefit from a

[android-developers] Re: What does the prefix 'm' stand for ?

2010-02-22 Thread Bob Kerns
I'm not fond of 'this.member'. It seems to combine the worst of both worlds -- an optional prefix that may or may not be used in different places. Though I understand why people use it in setters and constructors to avoid manging their argument names -- real prefixes avoid that need. On Feb 22,

[android-developers] Re: What does the prefix 'm' stand for ?

2010-02-22 Thread jotobjects
On Feb 22, 8:05 am, 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. ++ I don't use the m

[android-developers] Re: What does the prefix 'm' stand for ?

2010-02-22 Thread fadden
On Feb 22, 12:39 am, Bob Kerns r...@acm.org wrote: The point of style conventions is to make things easier, not provoke arguments. It succeeds at both. There is, however, NEGATIVE benefit -- actual harm, from the Hungarian Notation you find in Microsoft's code, which redundantly encodes the

Re: [android-developers] Re: What does the prefix 'm' stand for ?

2010-02-22 Thread nicolas melendez
prefixes are from another time.. now there are good IDEs. More to write, More to explain and NO benefit. Please use your favorite IDE, that is enough. NM On Mon, Feb 22, 2010 at 4:00 PM, fadden fad...@android.com wrote: On Feb 22, 12:39 am, Bob Kerns r...@acm.org wrote: The point of style

Re: [android-developers] Re: What does the prefix 'm' stand for ?

2010-02-22 Thread TreKing
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

Re: [android-developers] Re: What does the prefix 'm' stand for ?

2010-02-22 Thread Mark Murphy
TreKing wrote: I love these threads where people throw in their opinions as if they're fact. THIS IS A COMPLETELY SUBJECTIVE MATTER. But wait! Isn't that an opinion? :: ducks the rotten tomatoes tossed my way :: :-) -- Mark Murphy (a Commons Guy) http://commonsware.com |

Re: [android-developers] Re: What does the prefix 'm' stand for ?

2010-02-22 Thread Jason Proctor
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

Re: [android-developers] Re: What does the prefix 'm' stand for ?

2010-02-22 Thread Greg Donald
On Mon, Feb 22, 2010 at 4:45 PM, TreKing treking...@gmail.com wrote: THIS IS A COMPLETELY SUBJECTIVE MATTER. Computer science teaches us to 'always do the simplest thing that will work'. -- Greg Donald destiney.com | gregdonald.com -- You received this message because you are subscribed to

Re: [android-developers] Re: What does the prefix 'm' stand for ?

2010-02-22 Thread TreKing
On Mon, Feb 22, 2010 at 4:50 PM, Mark Murphy mmur...@commonsware.comwrote: But wait! Isn't that an opinion? Nope, that's fact =P On Mon, Feb 22, 2010 at 4:56 PM, Jason Proctor jason.android.li...@gmail.com wrote: why? well, if you use a prefix, then bean-centric code can't derive the

[android-developers] Re: What does the prefix 'm' stand for ?

2010-02-21 Thread Sam Dutton
The Android Code Style Guide explains the conventions used for field names: http://source.android.com/submit-patches/code-style-guide#field_names. Sam Dutton On Feb 22, 5:52 am, Christ wutie...@gmail.com wrote: Hi guys, I saw many sample codes that each variable contains the 'm' prefix. I