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

Confusingly named variables #13

Open
ZooeyMiller opened this issue Aug 3, 2017 · 1 comment
Open

Confusingly named variables #13

ZooeyMiller opened this issue Aug 3, 2017 · 1 comment

Comments

@ZooeyMiller
Copy link

Your variable names should be descriptive, and unique, such that it's easy to get a basic idea of the value of a variable before looking at it.

A variable called countr doesn't tell me anything about what the value of the variable is, and isn't great, especially when you have an argument to a function called country in the same file. It would be easy to confuse these two, and make mistakes.

When naming variables think:

  1. What will the value of this variable be?
  2. Is the name I'm thinking of either already used in my code, or, very similar to a variable already in my code?
@ZooeyMiller ZooeyMiller changed the title Confusingly name variables Confusingly named variables Aug 3, 2017
@mahmoudalwadia
Copy link
Contributor

fixed !

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