On Trusting AI-Generated Software

On Trusting AI-Generated Software

To what extent should one trust a statement that a program is free of Trojan horses? Perhaps it is more important to trust the people who wrote the software.

— Ken Thompson, Reflections on Trusting Trust (1984)

This quote is perhaps more relevant today than it was when it was written. Ken Thompson observed long before the current AI boom that trusting a piece of software necessitates trusting the person who wrote it. The fact that software performs its advertised function alone is not grounds for trust.

[Read more]

Thoughts on AI-Assisted Development

AI-assisted coding tools are polarizing, to say the least. On one end of the spectrum, you have the skeptics. Citing concerns around security, code quality, and maintainability, they remain wary of AI’s role in the software development lifecycle. On the other end, you have the “AI bulls,” who argue that AI not only makes developers more efficient but will eventually outperform human-centric development altogether.

In this post, I’m not going to argue for or against AI-assisted coding. I think it is a foregone conclusion that these tools are here to stay. However, I believe that proper utilization requires a more nuanced analysis of project requirements, as well as a willingness to take ownership of the code AI produces. My goal is not to dictate your stance on AI, but to offer some guiding principles for how developers can thoughtfully and intentionally integrate these tools into their daily workflows.

[Read more]

Our FastAPI Project Template

Our FastAPI Project Template
Note
The template repository can be found on GitHub here.

FastAPI is a fantastic tool for building REST APIs in Python. However, many tutorials, guides, and project templates set developers up for failure as their APIs grow in scope and complexity. A quick search for “FastAPI project templates” reveals a recurring pattern:

my_fastapi_project/
├── app/
│   ├── __init__.py
│   ├── main.py
│   ├── dependencies.py
│   ├── routers/
│   │   ├── __init__.py
│   │   ├── users.py
│   │   └── items.py
│   ├── internal/
│   │   ├── __init__.py
│   │   └── admin.py
│   ├── core/
│   │   ├── __init__.py
│   │   ├── config.py
│   │   └── security.py
│   ├── models/
│   │   ├── __init__.py
│   │   ├── user.py
│   │   └── item.py
│   ├── schemas/
│   │   ├── __init__.py
│   │   ├── user.py
│   │   └── item.py
│   ├── services/
│   │   ├── __init__.py
│   │   ├── user_service.py
│   │   └── item_service.py
│   └── db/
│       ├── __init__.py
│       ├── database.py
│       └── migrations/
├── tests/
│   ├── __init__.py
│   ├── test_main.py
│   ├── test_users.py
│   ├── test_items.py
├── .env
├── .gitignore
├── requirements.txt
├── README.md
└── run.sh

While this setup is fine for smaller projects, our team has found that the developer ergonomics suffer as the API expands. This is primarily because developers are forced to jump between multiple directory trees to work on related logic.

[Read more]

Search Agent Optimization

Search Agent Optimization

AI Summaries

The summarization of digital media has become one of the most prominent and impactful applications of artificial intelligence in recent months. YouTube has introduced a feature that instantly generates a text summary of any video on the platform, enabling users to extract information from a video without actually watching it. Other platforms are implementing content summary features as well. Microsoft Copilot can summarize your emails, Spotify Recap can summarize audiobook chapters, and Google will even summarize the entire internet for you with AI Overviews. These “AI summary” features seem to be invading every content consumption platform on the internet.

[Read more]