How to Make Mistakes in Python

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

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.
Table of Contents
Introduction
Setup

Polluting the System Python
Using the Default REPL
Silly Things
Forgetting to Return a Value
Misspellings
Mixing Up Def and Class
Style
Hungarian Notation
PEP-8 Violations
Bad Naming
Inscrutable Lambdas
Incomprehensible Comprehensions
Structure
Pathological 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

Author(s): Pirnat Mike.

Language: English
Commentary: 1908295
Tags: Библиотека;Компьютерная литература;Python