Plurrrr

Wed 08 Jul 2026

Effective Python Third Edition

Today my copy of Effective Python Third Edition arrived. The book by Brett Slatkin has 125 specific ways to write better Python.

Effective Python, third edition
Effective Python, third edition.

I browsed the book a bit and it looks very good! I like how the program listings have colors. After I have finished the Python Certification course on freeCodeCamp I want either start in this book or continue with the 2nd edition of Fluent Python by Luciano Ramalho. I have reread the first two chapters of the latter.

Changing the margin with Pandoc

Yesterday I learned how to generate a PDF file with the official Pandoc LaTeX image. The resulting PDF looked good, but has a huge margin around the body of text. Today I created a header.tex file with the following contents:

\usepackage{geometry}
\geometry{margin=1in}

Next, I ran the following command:

docker run --rm \
  -v "$(pwd):/data" \
  -u $(id -u):$(id -g) \
  pandoc/latex freecodecamp.md \
  -H header.tex \
  -o freecodecamp.pdf &&
  open freecodecamp.pdf

And with this command the margin was shrunk to 1"; much better.