Now that I have your attention.

Please bear with me. I need to get a lot of things off my chest about the state of software in Python, what’s been bothering me, and why I think developers should consider these things before investing their careers in it.

This isn’t coming from someone who hates Python. I invested heavily in Python. I wanted it to be my primary language, professionally and personally.

I even built a web framework to deepen my understanding of it. And after all that, I’m starting to question whether I made the right investment.

Helpful Python

One of the things that attracted me to Python is it’s flexible data model.

Once it clicks, you stop thinking of a program as merely a sequence of instructions and start thinking about how your code fits into the language’s data model.

Functions and Classes are objects. Methods are descriptors. Operators are protocols. I can customize how objects behave without an elaborate inheritance hierarchy.

class Money:
    def __init__(self, amount):
        self.amount = amount

    def __add__(self, other):
        return Money(self.amount + other.amount)

Instead of writing an explicit operation:

total = add_money(price, tax)

You can express it naturally:

total = price + tax

Or take decorators. Instead of constructing an elaborate class hierarchy to introduce behavior, you can often express it as a transformation of a function.

@cache
@retry
def fetch_user(user_id):
    ...

There are descriptors, metaclasses, context managers, generators, and a lot more.

None of these concepts is entirely unique to Python. But it encourages their use in application in ways that many other languages don’t.

Python was also enormously helpful during my technical interviews. I originally came from languages like Java, where I would spend time wrestling with syntax, types, and boilerplate before getting to the actual problem.

With Python, most of that disappeared. I could focus on the actual logic rather than the language. I could finish implementations much quicker without carrying a ton of mental overhead. That also helped me land job offers.

Desirable Python

The rise of LLMs also reinforced this decision even further.

My thesis was if I developed deep expertise in Python, I could move between backend engineering, infrastructure, data engineering, and machine learning without having to reinvent myself every time. And believed Python would help across these domains.

I knew I wouldn’t have to become an expert in every technology. I could acquire domain knowledge as needed while relying on Python as my foundation.

I also wanted to differentiate myself in the employment market. There were AI/ML engineers who understood models but had limited experience building production services. There were data engineers, infra engineers. I wanted to distinguish myself from those groups by becoming the engineer who could build serious, production-grade Python software across these domains.

Not just use the libraries. Understand the language underneath them. I thought doing this would provide me a competitive employment strategy.

I went with the thesis that staying closer to Python would provide me enough flexibility to move from backend to infra to data to machine learning.

So, there was enough incentive for me to think of Python as a primary language that I develop stuff both professionally and personally. To reinforce that expertise, I built Karak, an experimental Python web framework.

The intention wasn’t merely to build another framework. I wanted to understand the machinery behind existing frameworks and see how far I could push my knowledge of Python. All of these exercises where incredibly enjoyable, and I thought I found my language.

Violent Python

Python is a creature of two world.

And this translates to the software as well. The cost of the flexible data model was something I could bear but the cost of operating in two worlds always frustrated me.

You have synchronous and asynchronous Python. You have C and Rust thrown into the ecosystem to make it faster. On top of that, you have type hints that the interpreter doesn’t enforce, Pydantic to enforce types at runtime, and an entire ecosystem of tooling to make the experience more tolerable.

Everyone wants their Python to behave differently.

Python written by Python engineers is very different from Python written by Java engineers.

Give the same problem to five engineers from different programming backgrounds, and you could end up with five fundamentally different Python projects.

One will give you a collection of functions. Another will give you a hierarchy of classes. Another will give you repositories, factories, abstract interfaces, and a dependency injection container.

To paraphrase Tolstoy: All happy Python projects are alike, each unhappy Python project is unhappy in its own way.

What ends up happening is every sufficiently large Python project feels like a dialect of its own. On top of the domain knowledge, I also need to familiarize myself with the nuances of the engineers who built the project.

This bothers me from a career perspective. I realised that investing my career with the expectation that the knowledge would compound was incorrect. I still needed to deal with the tendencies of the engineers building it.

I find myself learning different ways of accomplishing the same thing. I have started to develop an deep dislike for type hints in Python.

def get_user(user_id: int) -> User:   
  ...

I find this perfectly reasonable. Now consider this:

T = TypeVar("T", bound=Entity)
ID = TypeVar("ID", contravariant=True)

class Repository(Protocol[T, ID]):    

  async def get(self, identifier: ID) -> T | None:        
    ...

And eventually, you find yourself something like this:

class UserService:
    def __init__(
        self,
        repository: Repository[User, UUID],
        unit_of_work: AbstractUnitOfWork,
        event_bus: EventBus[DomainEvent],
    ) -> None:
        ...

Each operation is behind an abstraction. Each abstraction behind another abstraction. You find yourself navigating across several files before you encounter anything that resembles a business logic.

At that point, it’s no longer a Python, it’s a Basilisk.

What attracted me to Python in the first place was its ability to express things without this much ceremony. If this is how I am going to develop software, what exactly am I getting out of Python?

Outgrowing Python

I thought LLMs would help me overcome some of these frustrations. Instead, I started noticing something interesting about my AGENTS.md files. It was becoming increasingly prescriptive about how not to write Python.

- Don't introduce unnecessary abstractions.
- Don't introduce generic base classes.
- Don't create interfaces for single implementations.
- Don't introduce dependency injection unnecessarily.
- Don't wrap everything in Pydantic models.
- Don't create a class when a function will suffice.

My AGENTS.md was becoming a filtering layer for Python. I was basically defining a dialect of the language and that I was comfortable working with.

LLMs have also made another problem considerably worse. They can produce an enormous amount of valid Python code that I have no desire to go deeper into.

It’s getting to a point where LLMs are becoming more comfortable operating in certain Python codebases than I am. And I am becoming the bottleneck for my LLMs to proceed further.

This was counter intuitive to the reason I chose Python which was to eliminate myself as a bottleneck when expressing ideas. Today, I find myself in the position of being able to produce more Python than ever before, while having less desire to read it.

I chose Python was because it reduced the distance between what I wanted to accomplish and my ability to express it in software.

I no longer derive much utility from a language being easy to write. I derive considerably more utility from a language being easy to read, reason about, and maintain.

I want fewer ways of accomplishing the same thing. I want conventions that transcend projects. I want my knowledge to compound rather than my familiarity with individual codebases.

I want the language to impose restrictions that I would otherwise have to articulate in my AGENTS.md. The characteristics of Python that I once considered desirable are becoming bottleneck in the way I develop software.

And that’s why I’ve decided to give another language a chance.

I spent years learning how to express myself in Python. I now want a technology in which I can spend less time understanding how others have expressed themselves.