O'Reilly logo

Tkinter GUI Application Development Blueprints - Second Edition by Bhaskar Chaudhary

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Naming variables and methods

Use meaningful and self-documenting names for your variables and methods. The name should leave no scope for confusion about the intent of the variable or the method. Use plural names for collections and singular names otherwise. Methods that return Boolean values should be appended with words such as is or has. Stick to the style guidelines, but you should also know when to break them.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required