Python Crafted (@PythonCrafted) header
Python Crafted (@PythonCrafted) profile picture

Production-ready Python. Deep-dives into AI Agents, FastAPI architecture, Polars data pipelines & CPython internals.

Joined March 2017
Photo by Python Crafted (@PythonCrafted)Photo by Python Crafted (@PythonCrafted)Photo by Python Crafted (@PythonCrafted)Photo by Python Crafted (@PythonCrafted)Photo by Python Crafted (@PythonCrafted)Photo by Python Crafted (@PythonCrafted)Photo by Python Crafted (@PythonCrafted)Photo by Python Crafted (@PythonCrafted)Photo by Python Crafted (@PythonCrafted)Photo by Python Crafted (@PythonCrafted)
Line 2 in this snippet trips up so many devs during interviews. Passing a list into its own append method looks like an infinite loop trap in memory. A, B, C, or D?
11
1
1
24
3,710
Replying to @sergeikotau
100% accurate on both. That hidden dict shadow is sneaky because Python won't warn you until later in the script. Do you rely on a specific linter like Ruff to catch that early, or just muscle memory now?
1
Python is hard 🤣
5
362
Python vs. Java vs. JavaScript vs. C++ : Printing "Hellp World"
109
Everyone blames Python async code for slow AI responses when 95% of that 400ms wait happens deep inside GPU HBM memory.
1
99
Prototyping locally with Ollama feels magical until twenty concurrent users hit your Python API at the exact same second.
6
174
Code review on export_cfg(data) looks way too easy at first glance.
1
2
7
249
RAG vs. CAG vs. KAG
4
171
Most devs burn half their Claude Code token budget just because they ignore five slash commands on this sheet.
5
178
Translating data pipelines between Pandas, Polars, SQL, and PySpark side by side. One syntax habit here refuses to die.
3
142
Passing nums into update(nums) here is a classic interview trap.
1
1
4
192
Replying to @launchverse_
Hard capping loops is the only thing keeping infrastructure bills alive. A recursive prompt loop hitting an LLM API at production scale will dry up a startup budget before the engineering team even wakes up.
1
Choosing between Full Fine-Tuning, LoRA, and RAG is the most expensive architectural choice you will make this year. Here is the visual breakdown.
2
123
💻✨ Every pixel begins with Python. Turning Python code into digital art, where logic, mathematics, and creativity come together to create interactive visual experiences.
1
116
Every backend and data engineer needs to print this out and glue it to their desk. Bookmark this before your next technical interview.
2
148
IF they could speak...😭😂
1
8
325
Python for loops, explained like a cartoon 🐍
3
194