2 That’s a good name

This chapter covers

  • Names
  • Naming conventions
  • Namespaces

The names that we give to items and concepts help us navigate the world and communicate with everyone else who shares it with us. The idea that names matter is even more important in the world of software development. Programming languages have keywords, grammar, and syntax that are generally a subset of a common, in-use language. In the case of Python, that language is English.

For programming languages, this means we use a prescribed set of keywords, grammar, and syntax to create programs that will ultimately run. Naming elements in those programs, however, is entirely within your control, as you can draw from the rich set of English words and phrases to name the ...

Get The Well-Grounded Python Developer now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.