First Edition. — O’Reilly Media, Inc., 2015. — 82 p.
Experienced programmer Mike Pirnat shares some of his most memorable blunders. By avoiding these missteps, you’ll be free to make truly significant mistakes — the ones that advance the art of programming.
Introduction
SetupPolluting the System Python
Using the Default REPL
Silly ThingsForgetting to Return a Value
Misspellings
Mixing Up Def and Class
StyleHungarian Notation
PEP-8 Violations
Bad Naming
Inscrutable Lambdas
Incomprehensible Comprehensions
StructurePathological If/Elif Blocks
Unnecessary Getters and Setters
Getting Wrapped Up in Decorators
Breaking the Law of Demeter
Overusing Private Attributes
God Objects and God Methods