Articles
Page 2 of 3
- Development › Python › Strict Python
A typed Django ORM: what the type checker sees and what it does not
What mypy and Pyright understand of the Django ORM with django-stubs: the plugin, QuerySet[Model], annotate() and values() with TypedDict, and no plugin.
- Development › Python › Strict Python
Type tests: making the types say what they promise
How to prove your types accept what is right and reject what is wrong: assert_type, expected errors, and mypy and Pyright run from pytest.
- Development › Python › Strict Python
pytest in depth: from fixtures to tests that fail sometimes
pytest beyond the basics: typed fixtures, pytest-django, Hypothesis with st.data(), Playwright without fixed waits, and warnings that sneak into your tests.
- Development › Python › Strict Python
Mutation testing: the test that tests your tests
Why 100 % coverage is not enough: mutation testing with mutmut, a real surviving mutant, and how to split it in CI with parallel shards and a cache.
- Development › Python › Strict Python
The CI matrix: what only fails on another version or another system
How to build a CI matrix with tox and GitHub Actions for Python, Django, databases, Windows and macOS, told through the real failures it uncovered.
- Development › JavaScript
Alpine.js and heavy libraries: from 1.8 seconds to milliseconds
Why Leaflet or Chart.js get slow or break inside Alpine.js: the reactive proxy and the MutationObserver, measured with DevTools, and how to avoid it.
- Development › TypeScript › Angular
Directive or component for an input in Angular
Why, with Angular Reactive Forms, I prefer a directive on the native input over wrapping it in a component with ControlValueAccessor, and when I don't.
- Development › TypeScript › Angular
Your Angular component does not fill the width (and it is not your CSS's fault)
Why your Angular component ignores width and margin: the host element, :host with display: block, and how it fits into flex and grid layouts.
- Development › PHP › Symfony
Dynamic queries with Doctrine's QueryBuilder in Symfony
Optional filters with Doctrine's QueryBuilder in Symfony: conditions built from filters, parameters against SQL injection, joins without N+1, pagination.
- Systems › Cloud › AWS
Basic architecture on AWS: Django and static sites
The basic AWS building blocks, Django on AWS and how to serve a static site from S3 with a CDN (CloudFront) in front: faster, more secure and cheaper.
- Systems › Containers
Django with Docker, Gunicorn and Nginx
Deploying Django with Docker, Gunicorn and Nginx: the Dockerfile, Gunicorn settings, Nginx config, compose.yaml with PostgreSQL, proxy settings and migrations.
- Systems › Containers
Multi-stage Dockerfile: development and production in a single file
One Dockerfile with a development stage and a lean production image: build stages, --target, layer order for caching and a non-root user, using a NestJS API.
Showing 13–24 of 30