#Python

8 posts
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 473
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 523
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 600
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 1,063
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 872
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 738
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 1,861
Regular Expressions, Explained Without the Fear
Development

Python Virtual Environments, Finally Explained for People Who Just Want Their Code to Work

Picture this: a project you wrote six months ago suddenly refuses to run. You didn't touch a single line, yet the imports are broken and the error messages read like a foreign language. You upgraded a...

2026.06.30 · 16 min read · views 1,153
Python Virtual Environments, Finally Explained for People Who Just Want Their Code to Work
AD