#Python

13 posts
Development

Works on My Machine: A Calm Guide to Python Projects with uv

It is Friday afternoon. A teammate pings you: "The script works on my laptop, why does it crash on yours?" You compare versions, and the story unfolds the way it always does. Different Python, a libra...

2026.11.18 · 14 min read · views 971
Works on My Machine: A Calm Guide to Python Projects with uv
Development

Stop Passing Mystery Dictionaries Around: Dicts, Dataclasses and Pydantic in Python

It's 4:47 p.m. and a bug report lands in your inbox: "Order totals are wrong for some customers." You open the code and find a function that takes a dictionary called order. You scroll up. Is the pric...

2026.10.31 · 15 min read · views 1,163
Stop Passing Mystery Dictionaries Around: Dicts, Dataclasses and Pydantic in Python
Development

Your Script Crashed on a String That Should Have Been a Number

It's Tuesday afternoon and your Python script just crashed in production. The traceback is short and unfriendly: `TypeError: unsupported operand type(s) for : 'str' and 'int'`. Somewhere upstream, a J...

2026.10.06 · 14 min read · views 1,633
Your Script Crashed on a String That Should Have Been a Number
Development

A Folder, a PATH Change, and the End of Dependency Drama

You clone a teammate's Python project, run `pip install -r requirements.txt`, and get a wall of red text. Two hours later you discover the project wanted Python 3.11, your machine has 3.9, and a packa...

2026.09.29 · 14 min read · views 982
A Folder, a PATH Change, and the End of Dependency Drama
Development

The Meeting Was at 9. The Server Said It Was Midnight.

A reminder fires at 4:00 in the morning. Nobody set it for 4:00 in the morning. The support ticket says the alert was scheduled for 1:00 PM. You check the database and the row says `2026-03-14 04:00:0...

2026.09.14 · 25 min read · views 1,810
The Meeting Was at 9. The Server Said It Was Midnight.
Development

Your Container Is 1.2 GB. Your App Is 4 MB.

You push a deploy at 4:40 on a Friday. The build finishes, the registry starts uploading, and you watch the progress bar crawl: 1.24 GB. Your entire application — the part you actually wrote — is abou...

2026.09.05 · 25 min read · views 2,237
Your Container Is 1.2 GB. Your App Is 4 MB.
Development

It Works on My Machine — Until Someone Else Clones It

A friend asks you to look at a small script. You clone the repo, run `python main.py`, and within two seconds you are staring at `ModuleNotFoundError: No module named 'requests'`. You install requests...

2026.08.27 · 17 min read · views 1,275
It Works on My Machine — Until Someone Else Clones It
Development

The Project You Didn't Touch Broke Anyway. Blame the Global Install.

You clone a coworker's project, run `pip install -r requirements.txt`, and everything looks fine. Two days later a completely different project on your machine starts throwing import errors. Nothing a...

2026.08.19 · 18 min read · views 1,351
The Project You Didn't Touch Broke Anyway. Blame the Global Install.
Development

O(n²) Worked on Your Laptop. Then Real Users Showed Up.

You wrote a function that worked perfectly on your laptop. It flew through a list of 50 names, sorted them, found the duplicates, and returned an answer in a blink. Then you shipped it, real users sho...

2026.08.14 · 15 min read · views 3,409
O(n²) Worked on Your Laptop. Then Real Users Showed Up.
Development

Stop Hardcoding Secrets: A Practical Guide to Environment Variables

You just pushed your side project to a public repo, feeling proud. A week later, an email lands from your cloud provider: someone spun up forty servers on your account overnight, and the bill is climb...

2026.08.01 · 16 min read · views 2,297
Stop Hardcoding Secrets: A Practical Guide to Environment Variables