// my first real language

Python

7 min read

Python is the easiest page in this section for me to write, and that’s exactly why I need to be careful with it — familiarity makes it tempting to just say “I like Python” and move on. I’m trying to actually interrogate why, and where the edges of that comfort are.

There’s a small asterisk I should put on “first language” before going further, because technically it isn’t — if you want the pedantic, chronological answer, that’s HTML and JavaScript, poking at a personal webpage years before I took programming seriously (there’s a whole page on that elsewhere). Python is the first language in the sense that actually matters to me: the first one I sat down with specifically to learn how to program, rather than to make a webpage do something, and the first one that made the idea “I could actually build things” feel real instead of aspirational.

Where I stand with it

Python is where most of my actual shipped work lives, and where that initial “I can actually build things” feeling has had the most time to turn into real, repeated practice. Both of the side projects documented elsewhere on this site — a Django build and a FastAPI build, deliberately done in both so I could compare them honestly rather than pick a favorite and rationalize it afterward — are Python. The data-exploration tool I built around a Letterboxd export, parsing a CSV into genre, director, and rating breakdowns, is Python. Various small homelab scripts, a couple of automation one-offs for this blog’s own tooling, and most of my “I just need to get an answer out of this data” throwaway scripts — all Python, usually before I’ve consciously decided to reach for it.

I’d call my skill level solid-to-comfortable: I’m fluent with the core language, comfortable with the standard library’s more useful corners (itertools, dataclasses, pathlib instead of fighting os.path strings), and I’ve used both of the two major web frameworks people actually argue about — Django’s batteries-included, opinionated structure, and FastAPI’s leaner, type-hint-driven, async-first approach — in real, if small, projects. I’m less experienced with the data-science side of the ecosystem (pandas beyond basic dataframe work, anything involving numpy at a serious level, nothing with PyTorch or similar) and I haven’t done serious packaging or distribution work — publishing a library to PyPI, dealing with the wheel-building ecosystem properly — which I think is a legitimate gap given how much of “real” Python work apparently involves exactly that.

What I think of it

Python’s biggest strength, for me, isn’t any single language feature — it’s the size of the gap between “I have an idea” and “I have working code I can look at.” No other language on this page gets me there faster, and after spending real time in C and C++, I no longer take that for granted. There’s a kind of thinking you can only do once the feedback loop is fast enough, and Python’s interpreter, REPL, and forgiving dynamic typing make that loop about as fast as it gets without sacrificing readability.

That said, I’ve become a more skeptical Python user over the last year or two, mostly because of time spent in Go and in C. Dynamic typing, which felt like pure convenience when it was the only model I knew, now reads to me as a deliberate tradeoff — you’re trading compile-time certainty for iteration speed, and that trade is correct for a lot of what I actually do (scripts, APIs, data munging) and wrong for the kind of thing I’d want C or Rust for instead. Type hints and tools like mypy and FastAPI’s Pydantic-based validation have narrowed that gap considerably, and I now reach for them by default rather than as an afterthought — a change in habit I directly credit to having been burned by untyped code in a large-enough script to actually hurt.

Performance is the other honest conversation. I don’t think Python’s speed is actually a problem for the vast majority of what I build with it — a homelab automation script or a small API doesn’t need to be fast in the way a packet parser does. But I notice myself increasingly thinking in terms of “is this the part of the system that needs to be fast” and routing accordingly, rather than assuming Python can or should do everything. That’s a healthier relationship with the language than I had a year ago, when “just use Python” was closer to a reflex than a decision.

Comparing the two frameworks directly, since I’ve now built real things in both: Django’s “it’s all included and opinionated” model is genuinely great for getting a full application — admin panel, ORM, auth — running fast, and I understand why it dominates a certain category of project. FastAPI’s leaner, async-native, type-hint-driven approach fits my actual taste better, mostly because the type hints double as both documentation and validation, which feels like getting something for free that Django makes you bolt on separately. I don’t think either is objectively better. I think FastAPI fits the kind of smaller, API-first projects I tend to build, and Django would win if I were building something bigger with more moving parts and more need for its built-in conventions.

Tooling is the other place my habits have shifted recently. I spent years on plain pip and manually managed virtual environments without thinking much about it, the way you don’t think about water. Switching a couple of projects over to uv for dependency management was a small change that nonetheless made me notice how much friction I’d just accepted as normal — lockfile handling and environment creation that used to take real, conscious effort now mostly disappear into the background, which is exactly what good tooling should do.

Where I go to learn it

Python is also where my resource list is the most eclectic, because I’ve been using it long enough to have accumulated references rather than following one curriculum:

  • The official Python documentation — genuinely one of the best-written language docs I’ve used across any of these pages. The tutorial is good for beginners, but the library reference is where I actually live; it’s precise without being as dense as, say, cppreference.
  • “Fluent Python” by Luciano Ramalho — the book that moved me from “I can write Python” to “I understand why Python’s object model and data model work the way they do.” The chapters on dunder methods and the data model changed how I read other people’s Python permanently.
  • Real Python — my default when I need a concrete, practical walkthrough of a specific library or pattern rather than a conceptual deep dive. Consistently well-edited, which is rarer than it should be in this space.
  • The FastAPI and Django documentation sites themselves — both unusually good as far as framework docs go, and I mean that as a real compliment given how often framework docs are an afterthought. FastAPI’s docs in particular taught me as much about good async API design as any book would have.
  • mypy’s documentation and the typing module’s official docs — this is where my newer, more type-conscious habits actually came from. Reading through what the type system can and can’t express pushed me to write more intentional Python, not just more decorated Python.
  • A handful of specific PEPs (PEP 8 obviously, but also PEP 484 for typing and PEP 572 for walrus operators) — I don’t read PEPs as a hobby, but when I want to understand why a feature landed the way it did rather than just how to use it, the PEP is usually more illuminating than any secondary source.

Where this is headed

Python isn’t going anywhere as my default tool, and I don’t expect that to change soon. What I do expect to change is the shape of my Python — more type hints, more deliberate boundaries around where I use it versus where I reach for something else, and probably more comfort with the packaging and distribution side once one of my side projects actually needs to be installed by someone other than me.