Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explain what a special prefix/suffix is #326

Open
rnveach opened this issue Feb 6, 2018 · 1 comment
Open

Explain what a special prefix/suffix is #326

rnveach opened this issue Feb 6, 2018 · 1 comment

Comments

@rnveach
Copy link

rnveach commented Feb 6, 2018

https://google.github.io/styleguide/javaguide.html#s5.1-identifier-names

In Google Style special prefixes or suffixes, like those seen in the examples name_, mName, s_name and kName, are not used.

Can you please elaborate and explain what you deem to be a special prefix/suffix and update the guide with such definition and how the current list of examples violate it?
Is it referring to Hungarian notation or something else?

mName

Would any single letter before Name violate this as special, or are there some cases where it would be acceptable? Ex: eName

@jakub-bochenski
Copy link

To give some more concrete examples: the checkstyle template will not allow names like:

  • xTransaction (for X-Transaction)
  • eCommerce (for E-Commerce)

Are those prefixes the disallowed "special prefixes"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants