#Python

11 posts
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 843
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 547
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,106
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 1,529
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,003
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,065
The Project You Didn't Touch Broke Anyway. Blame the Global Install.
AD
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 2,463
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 1,731
Stop Hardcoding Secrets: A Practical Guide to Environment Variables
Development

Regex Without the Fear: Reading Any Pattern Left to Right

You have a folder full of files named `invoice_2026_01.pdf`, `invoice_2026_02.pdf`, and a hundred more. You need the ones from the first half of the year, but not the drafts, and definitely not the `i...

2026.07.27 · 15 min read · views 1,308
Regex Without the Fear: Reading Any Pattern Left to Right
Development

Regular Expressions, Explained Without the Fear

You're staring at a log file with 40,000 lines in it. Somewhere in there is the one request that failed, and you know it has a timestamp, an IP address, and the word `timeout` in it. A colleague leans...

2026.07.13 · 20 min read · views 3,108
Regular Expressions, Explained Without the Fear
AD