Use Dotenv Files When Developing Your Python Apps

Hard-coding configuration is bad. This is one of the things that newbie programmers learn quickly after they realize that have committed sensitive information to a public GitHub repository. And it happens so easily. Often, you are in the spur of the moment, wanting to test something locally, when you figure…

Python: Automatic Argument Unpacking from a Dictionary

Programming often involves creating configuration objects/dicts and passing them around to functions. Let's say we want to pass the following configuration dict to a function: config = { 'prop_a': 'foo', 'prop_b': 'bar' } Usually, a function that consumes this configuration dict would either expect a single parameter: def do_something(…

What’s with the 50/72 rule?

It is part of common sense to assume that the worthiest commit messages lie far from any extremes. Years ago, I often fell in the trap of hastily sending a commit after commit, annoyed by the fact that I have to add a summary to it (let alone a description)…