So here it is: introducing Django RAPID architecture, the guidebook I've been writing (on and off) for a year or so, and thinking about for my entire career.
https://t.co/DO7YrrEhW8
It's a free, opinionated guide to structuring real‑world Django codebases so they stay understandable and malleable as they grow.
It’s not a new framework, and it doesn’t try to hide Django. Instead, it leans into Django’s strengths and focuses on a few simple ideas:
- Keep models thin: data definitions, not “god objects”.
- Organise code by responsibility (readers, actions, interfaces, data) rather than by app.
- Put most business logic in plain functions, not in fat models or deep class hierarchies.
- Keep views thin: treat GET as "read some data" and POST as "do an action".
- Design endpoints around real frontend use cases (Backend For Frontend) instead of idealised resources.
- Control queries carefully to avoid performance traps.
I’d love you to take a look and let me know what you think!
Now in preview: The ChatGPT desktop app for Linux.
Use ChatGPT, ChatGPT Work, and Codex where you already work and build, with your projects and browser workflows on supported Linux systems.
1. Audible warning sound when dictation or voice mode fails or loses connection. Often I ramble while staring out of the window or pacing; several times I’ve lost several minutes of ideas because it had stopped listening and I didn’t notice.
2. The mental model for voice mode where it lives in a thread and co-ordinates other threads doesn’t make sense to me. It needs to be separated somehow, hierarchically “above” threads, at the top of the screen maybe, an “overseer”.
3. Lower memory usage on Windows. Not a Windows user myself, but I ran a training programme for an entire dev team and suggested they use Codex, but they now have to close almost everything else on their machines (with 32GB of memory) to actually use it.
4. Thanks!
Narrative violation: "The type safety we gave up hasn’t been noticeable in any concrete way yet, especially considering our test coverage has never been better."
But exactly what we see with Rails and LLMs. They're a beautiful and effective combination.
https://t.co/HIoFIPAEO8
1/ I was deeply saddened to hear that Inman Harvey has died. He was a wonderful and generous person, and an unparalleled intellect (his schoolfriend Geoff Hinton said that "he was always smarter than me"). This heartfelt obituary is by Phil Husbands: https://t.co/NO6nsj1VdH
I wrote this after going down a rabbit hole of frustration while trying to add an MCP interface to a Django app.
https://t.co/JRIvgZZlZJ
The MCP spec has become a towering edifice of up-front complexity. The API/CLI route is better, but felt hostile to non-technical users.
It's deliberately a bit playfully mock-grandiose, a gentle dig in the ribs at how seriously MCP takes itself, but I think it makes a substantive and hopefully useful point about keeping complexity out of agent harnesses.
Feedback very much appreciated.
Setting up a consistent, up front, type model requires insight into the long term structure of the system. AIs have only short term horizons. So I have my doubts about any statically typed language as an AI lubricant.
Dynamically typed languages are more token efficient, and allow the programmer to evolve and enforce type constraints expressed in test suites as the project matures.
That’s my hypothesis and I’m sticking with it (for now). ;-)
Why don’t any other browsers support container tabs like Firefox? Seems like the only sensible primitive for working with multiple sets of cookies for the same site. And no other browser supports it. How do people who don’t use Firefox get anything done?
https://t.co/xZKQr00u7X
@simonw update: replaced this with a very simple calculator that only supports +, -, *, /, parentheses, and unary +/-, and has a limit both on the string length of the expression, and the number of AST nodes. ~50 lines of Python.
@simonw as a sandbox enthusiast, have you seen this? https://t.co/db40z303zY
I’m working on a project with the OpenAI agents framework, and I needed the agent to be able to do basic maths (work out percentages and things). Rather than give it Code Interpreter, I wrapped arithmeval in a function tool. Seems to work very nicely.
Hmm, interesting. Is it theoretically possibly to give a model a “calculator” that lets it do basic maths accurately, but which is also a safe expression evaluator in the way you describe, without giving it a full VM to work in? Maybe just some limits on the complexity of expressions it can evaluate are needed. Or maybe remove its ability to use variables?