Thanks for reading! Of course all the repos that use these patterns are proprietary. Don’t all Django styleguides have this issue? The hope is that the prose is persuasive enough to make you feel like you can you give some of the ideas a try in a corner of your codebase..
Posts by Jamie Matthews
I’d love you to take a look and let me know what you think!
www.django-rapid-architecture.org
DabApps introduction post: www.dabapps.com/insights/int...
- 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.
- 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.
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:
Oh hi blue sky. Just popping in to say:
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.
www.django-rapid-architecture.org
Released django-readers 2.4.0 with support for Django 5.2 and a nice quality of life improvement for anyone using the DRF integration with schema generation: www.django-readers.org/community/ch...
Read more about the motivation and methodology behind Greener Charge here: dabapps.com/insights/gre...
P.S. We’re officially introducing Greener Charge at the “Charge & Drive EV Experience Day” tomorrow (3rd April) from 10am-4pm on Brighton Seafront. Come say hi!
Feedback very welcome, and please share with your EV-driving friends! 💚
The site can be added to the homescreen on your phone so it behaves like an app, which means it only takes a second to check just before you plug in.
We use carbon intensity forecasts from National Energy System Operator to tell you at a glance whether you should plug in your EV tonight, or if it’d be better to wait until the grid is greener. We think this approach could reduce the emissions from charging by up to 25%!
I'm pretty excited to share a project we’ve been cooking up at DabApps this week: Greener Charge greenercharge.uk
Please follow @greenercharge.uk
🧵
A "potential" 0.43% increase in GDP *by 2050* - in return for torching the UK's climate leadership and adding vast amounts of carbon to the atmosphere - is simply not worth it.
No third runway. Grow the green economy, not airports.
www.theguardian.com/politics/liv...
I don’t disagree. But unlike almost every other emitter of CO2 (transport, heating etc), at least this has a chance of resulting in net negative emissions. I think of it as an investment - the potential downside is *relatively* small but the upside would be hugely significant, if it pays off.
I think there’s a good chance of it happening. I think we’ll know more at the end of this year, once the next generation of LLMs appear.
Heat pumps offer vast energy efficiency gains.
They are 4x more efficient than gas boilers.
Any usage of any battery will cause it to lose capacity. I have no idea whether 0.4kWh/year is a lot. ~3% per year doesn’t sound wildly out to me. It’s also unclear whether that will continue for the whole lifetime of the battery: my understanding is that a lot of degradation happens early on.
Also, hiding capacity is exactly what the Powerwall does: it’s advertised at 13.5kWh but from new it’s actually over 15kWh, so the first few years of degradation don’t impact the advertised capacity. I’m not sure if any other home batteries do this.
House batteries are all about getting maximum benefit, so fully charging and discharging is the best approach, even if it’s harder on the battery.
You’re right to say that DC fast charging can also be harmful to batteries, and that never happens to house batteries. It’s easier to be friendly to EV batteries because most people rarely do long journeys and can carefully control home charging.
Have you seen this monumental opus on the intersection of AI and energy by @mliebreich.bsky.social?
about.bnef.com/blog/liebrei...
Kinder in what way? My EV lives in the 20-80% range almost all the time. The Powerwall does zero to 100% and back every day (in winter anyway)
Fair, although I’d expect the two figures to line up once that number reaches 13.5kWh.
Trying to follow your approach: last Sunday, according to the Tesla app, my Powerwall discharged 12.9kWh (and charged 0% from solar). Backup reserve is 5% which suggests a capacity of 13.58kWh. Is that plausible?
521Wh lost in about 18 months. I expect it to start eating into the advertised capacity in another 2-3 years.
Tesla exposes nominal_full_pack_energy via the local API on the Powerwall. At the start of July 2023 (when my Powerwall was brand new and I started logging it daily) that value was 15,115Wh. Today, it’s 14594Wh.
Happy new year!
What I’ve been calling “carbon leverage”:
“if AI helps bring forward the electrification of heating, transport and industry by a single year, that would more than offset any negative climate impact from its own relatively limited power demand.”
Just about scraped over the 5MWh mark for the year.