False test coverage

Code coverage can be misleading when code is executed but not actually tested. Here’s how to use coverage filtering to get more accurate metrics.

Read More

Lazy sorting in Python

Exploring lazy sorting algorithms in Python using generators. Partial quicksort beats built-in sorted(), but heapq outperforms both.

Read More

Avatars for non-users in Django

Generating unique SVG background patterns for non-user entities like case files, using seeded randomness for tiling patterns and color schemes.

Read More

Using filesystem transport with Celery

Using Kombu’s undocumented filesystem transport as a lightweight Celery broker for development, avoiding the need for RabbitMQ or Redis.

Read More