en

Packt Publishing

Quotes

DDaudalagidhas quoted2 years ago
"Explicit is better than implicit."
DDaudalagidhas quoted2 years ago
In this example, we factored the __init__() method into the superclass so that a common initialization in the superclass, Card, applies to all the three subclasses NumberCard, AceCard, and FaceCard.
DDaudalagidhas quoted2 years ago
A small domain of static objects may be part of implementing a Strategy or State design pattern.
In some cases, we may have a pool of constant objects created in an initialization or configuration file, or we might create constant objects based on command-line parameters.
fb2epub
Drag & drop your files (not more than 5 at once)