The Template Method Pattern consists of a method that is used as a default value. It is then overwritten in classes that inherit or include it: This way classes that inherit from Cycle can overwrite default_chain, removing the need of super… Read More ›
POODR
Avoid the need for comments
As comments are not executable, they are easily out of date. They are a form of decaying documentation. If the code inside a method needs a comment, you probably can extract the code into a new method whose name explains what… Read More ›