Skip to main content

Work Notes

Sharing experience, insights, and practical solutions from real projects. Architecture, performance, processes, and teams.

5
·22 min

ty from Astral: The Type Checker That Rewrites the Rules

Deep dive into ty — the new type checker from creators of uv and Ruff. Intersection types, intelligent narrowing, 10-100x faster than mypy. Revolution or just hype?

  • #Python
  • #Type Checking
  • #Tools
  • #Performance
Read
·25 min

WebSocket vs SSE vs Long Polling: Choosing Real-time in 2025

Honest comparison of three real-time communication approaches: WebSocket, Server-Sent Events, and Long Polling. When to use each, production pitfalls, and production-ready FastAPI examples.

  • #Python
  • #FastAPI
  • #WebSocket
  • #SSE
  • #Backend
  • #Real-time
Read
·20 min

FastAPI vs Django 5: An Honest Choice After 8 Months of Pain

Honest comparison of FastAPI and Django 5 after 8 months of migrations both ways. Real stories, Django async pitfalls, cases of saving $50k/year and returning to Django in a week. No marketing—only practice.

  • #Python
  • #FastAPI
  • #Django
  • #Backend
  • #Architecture
Read
·20 min

Pydantic v1→v2 Migration: Experience Upgrading 28 Models in a Test Project

Honest breakdown of migrating to Pydantic v2: 6 weeks of spare time, 3 production issues, -75% latency, and a bunch of gotchas discovered. No marketing, just practice.

  • #Python
  • #Pydantic
  • #Migration
  • #Testing
  • #Case Study
Read
·15 min

Python Generators and yield: Deep Dive

Complete guide to Python generators: from basic concepts to advanced patterns. Understanding yield mechanics, iterator protocol, coroutines, and practical interview cases.

  • #Python
  • #Generators
  • #Interview
  • #Performance
Read