android/kotlin-guides

Update guide to avoid hungarian notation

Closed this issue · 1 comments

Many developers have adopted the mHungarian notation (prefixing fields with a 'm') in their Android apps based off of early Android samples and the Android source code itself. Even though it has since come to light that field prefixing is not recommended, I've seen this style creeping into Kotlin now too unfortunately.

Could the Android Kotlin Style guide be updated to explicitly state that hungarian notation should not be used?

After a re-read its already mentioned 🤦‍♂️ ...

Special prefixes or suffixes, like those seen in the examples name_, mName, s_name, and kName, are not used...