The “asking” vs “guessing” cultural spectrum is one of many things that divides British and American culture (broadly speaking, though it varies across the USA/UK). I was explaining this to an American friend from one of the southern states recently. It goes like this…
When using Django database models and adding a calculated property of some kind, you should probably ensure it will be efficient in bulk even if that isn’t needed yet.
A post to help illustrate and popularise the concept of 2-D time, a technique which is essential for some situations.
A list of some exceptions to the principle of “You Ain't Gonna Need It” — that is, times when doing a bit more up front usually pays off.
In which I rant about Bible licensing.
Analysis and examples of the popular high-level pattern of making all the things in your system conform to a common interface.
Tips for winning the automated testing battle.
Announcement of my guide to writing Django Views.
Keyword-only arguments are a feature that has been around since Python 3.0 but I've not seen them used much. This post explores the how and why.
Why I can't use Elm, and can't recommend it to others.
How to implement the classic double-checked locking pattern with Django ORM/PostgreSQL.
Some analysis on the false positive rate when using Pylint on a codebase.
OTP/TOTP for two factor auth (2FA/MFA) is very easy to misunderstand and implement insecurely
How to replace 6+ design patterns with one concept in Python
A failed attempt, a success, and some things to watch out for.
X is bad. So we should eliminate X, right?
Some lessons from the recent WordPress vulnerability