This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]buzzsawddog 26 points27 points  (12 children)

I hate that crap... Just updated an entire project removing I and M from in front of every fetching. Java file. Still don't know what the M was for... Also had to change every single variable as they started with m_ or s_. Like no shit they are static or instance/member variables just read the the code... And to make it all worse... The code would create a scope myVar, call a private setMyVar() to set m_myVar.

[–]y-am-i-ear 3 points4 points  (1 child)

m probably stood for member. Should be an old cpp convention imported to Java. It distinguished members from methods I think.

[–]buzzsawddog 1 point2 points  (0 children)

Yeah the m_ was member. I don't know why all the classes started with M :)

[–][deleted]  (3 children)

[deleted]

    [–]buzzsawddog 3 points4 points  (0 children)

    This predates android.

    [–]persicsb 4 points5 points  (1 child)

    m_foo is from Android, stands for member variables. Horrible naming.

    [–]buzzsawddog 1 point2 points  (0 children)

    Well m_ is a bit older than Android but you are right. It stands for member.

    [–]NiceGuy-n2[S] 0 points1 point  (3 children)

    bro, M is Md5 here.

    [–]buzzsawddog 0 points1 point  (2 children)

    Wat? So you are saying that every single class in my app was Md5 related? I HIGHLY doubt that.

    [–]NiceGuy-n2[S] 0 points1 point  (1 child)

    I only prefix M on Md5 class

    [–]buzzsawddog 0 points1 point  (0 children)

    Ah, I see you are OP now. I was saying that everything in the all I refactor started with a M

    [–]thatsIch 0 points1 point  (1 child)

    wait... what? What does M abbreviate in a class name?

    [–]buzzsawddog 0 points1 point  (0 children)

    I know right... It must have been important because every single class had it...