Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


Jason Anders
Jason Anders
Treehouse Moderator 145,858 Points

When did Android drop the Hungarian Notation?

I've been 'away' from Android Dev for a few months, but have been drawn back. So, in reviewing... I'm almost through the new Build an Interactive Story App, which is extremely well done! Easy to follow and everything is so well explained (:star::star::star::star::star:)

Anyways, it just clicked that prefixing member variables with an 'm' is no longer done. ??

I can't say I miss that, but I am curious and to when and why that changed. Anyone? I tried 'Google' but couldn't find anything about when or why... just that it has.

Tagging Ben Jakuben and/or Ben Deitch

1 Answer

Ben Deitch
Ben Deitch
Treehouse Teacher

Hey Jason!

It's been slowly losing popularity for a while now, but I think it really picked up about a year ago when Jake Wharton wrote Just Say mNo to Hungarian Notation. He's a very popular Android developer, and he managed to start conversations about it on Twitter and Reddit.

Jason Anders
Jason Anders
Treehouse Moderator 145,858 Points

Thanks Ben,

I think I'm with Jake... :smiley: I wasn't really an mFan of it. Lol.

I was just curious, because Android Studio still wants to autocomplete my variable with the 'm'. So, I wanted to make sure on the proper and newest conventions.

Thanks again! :dizzy: