Development
Development problems I have run into on the backend and the frontend, and how I solve them, by language and framework.
- Development › Concepts
SSR, SPA, SSG, PWA and API: what each one is and what builds it
What sets SSR, SPA, SSG, PWA and an API apart, which frameworks build each one (Django, Flask, Angular, Next.js, Astro) and how I choose.
- Development › Concepts
REST API and SPA vs a monolith with htmx and Alpine
REST API with a SPA versus a Django monolith with htmx and Alpine, aspect by aspect: code, deployment, debugging, state, validation and errors.
- Development › Concepts
Code First or Database First: composite keys in six ORMs
Code First or Database First: how to decide, and how EF Core, Hibernate, Doctrine, Django, Eloquent and SQLAlchemy handle composite primary keys.
- Development › Tools
How to undo mistakes in Git without losing work
Undo mistakes in Git without losing work, case by case: restore, reset --soft/--mixed/--hard, commit --amend, revert, stash, and reflog to recover.
- Development › Python
A typed ORM without code generation
How to make mypy and Pyright understand a Python ORM without code generation or plugins: descriptors with overloaded __get__, generics and dataclass_transform.
- Development › Python
How I organise a growing Python project: the same structure in Django and Flask
The structure I use for Django and Flask projects that grow: domain, services, selectors and use cases to serve HTML and JSON at the same time.
- Development › Python › Django
N+1 queries in Django: from 101 queries to 1
How to find and fix N+1 queries in Django step by step: from 101 queries to 1 with debug-toolbar, select_related, prefetch_related and annotate.
- Development › Python › Django
Multi-tenancy in Django: four strategies
Four ways to isolate SaaS customers in Django: separate databases, hybrid, schema per tenant and tenant_id, with the trade-offs and when to use each one.
- Development › Python › Flask
Setting up your Flask: the essential dependencies for an SSR or API project
What I install in Flask to get what Django ships with: ORM, migrations, forms, CSRF, login and i18n, for SSR with Jinja or for a JSON API.
- Development › Python › Strict Python
Strict Python: the tools that warn you before production
The tools that make a Python project fail before production: uv, Ruff, mypy and Pyright, type tests, Hypothesis, coverage, deptry and the CI matrix.
- Development › Python › Strict Python
Ruff in depth: which rules to enable and how not to run three versions
Which Ruff rule families to enable, safe and unsafe fixes, per-folder exceptions and how to avoid running three different Ruff versions in one project.
- Development › Python › Strict Python
mypy and Pyright in depth: strict mode without surprises
What mypy --strict turns on, the cache, Pyright and its modes, running both at once, where to relax without giving up, and what Python 3.14 annotations changed.
Showing 1–12 of 21