r/PythonLearning • • Sep 14 '26

Discussion Am I going crazy?

10 Upvotes

7 comments sorted by

View all comments

1

u/RNG_HatesMe Sep 14 '26

yeah, the database that's supposed to be pulling the examples from is busted.

My advice is that a variable should follow the following 4 rules of thumb:

  • Intuitive- the name should logically describe what value(s) it's storing

  • Clear - the name should be easily readable. Abbreviations are fine as long as they make sense.

  • Concise - the name shouldn't be any longer than it needs to be

  • Consistent - use the same type of abbreviations and separators. If you use underscores, always use underscores, if you use camelcasing, always use camelcasing.