Title: Book Review: Writing Idiomatic Python
Slug: book-review-writing-idiomatic-python
Date: 2017-08-01 19:45:00
Author: Kartones
Lang: en
Tags: Reviews, Development
og_image: https://images.kartones.net/posts/screenshots/books/book_writing_idiomatic_python.jpg
Description: A review of the book 'Writing Idiomatic Python', by Jeff Knupp.


### Review

<p><img src="https://images.kartones.net/posts/screenshots/books/book_writing_idiomatic_python.jpg" alt="Writing Idiomatic Python" title="Writing Idiomatic Python" /></p>
<p><strong>Title</strong>: <a href="https://app.thestorygraph.com/books/4a7db03f-0545-4c53-94ad-b37e32a39f26">Writing Idiomatic Python</a></p>
<p><strong>Author</strong>: Jeff Knupp</p>

A small yet very useful book to teach you how to do things in a proper "Python way". It assumes you already know the language, and uses a very simple yet effective system of 1) describing the topic, 2) showing the harmful/wrong/typical way of doing it and 3) showing the idiomatic/best way to do it.

Comprehension lists, generators, choices of function arguments, default value caveats, even when to discard using objects in favor of simpler structures like named touples or just modules with functions.

Some of the examples were very revealing for me, as I come tainted from other object oriented languages and things are different in Python. You can read it in one or two afternoons so there's really no reason not to do it if you work with this programming language.
