Code Evaluation Flashcards
The accepted name for function is a class
method
Instead of naming functions after what the function does, instead the name should?
Name it as if it is a command
What should be the basic composition of functions?
small and simple
Naming convention for classes should be
camel case
The __init__ function should
Not do too much, It makes them harder to use
naming convention for class methods
underscore format
method argument should be
organized and consistent
With variable you should try not to
use variables that come from the module or globals. They should be fairly self contained.
A foolish consistency is the hobgoblin of little minds.
THINK FOR YOURSELF!!!!!!
format for class names?
Always, always have class Name(object)