News for hackers. Stuff that matters.

j4mie

I feel like we need some citations for these figures. Our World In Data [1] disagrees. I've not seen any analysis that puts any plant milk at a higher water use figure than dairy.

[1] https://ourworldindata.org/environmental-impact-milks

This looks great! Question on the API/CLI - is there any provision for capturing frames (or even streams?) from Homekit cameras, or even triggering events or webhooks based on the cameras detecting motion?
Re:Doing gigabit Ethernet over my British phone wires on Saturday January 24, 2026 @07:40AM (#46743073)
When we bought our house (1950s semidetached) it needed a full electrical rewire. I’m so glad I asked the electricians to run Ethernet all over the house at the same time, including to the ceiling in some rooms for WiFi access points.
Hi, author here. I have been building Django and DRF applications commercially for about fifteen years at DabApps, and this guidebook is an attempt to write down the architecture patterns we have arrived at, for projects that have to survive years of ongoing maintenance.

High level summary:

* We don’t hide Django under layers of abstraction, we just slice it up a bit differently than you would by default.

* 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.

Happy to answer questions!

Re:Happy 20th Birthday, Django on Monday July 14, 2025 @12:42PM (#44562196)
Laravel’s ORM was originally inspired by my now-long-dead PHP projects Idiorm and Paris:

https://laravelpodcast.com/episodes/c7807d42/transcript (Search for “Paris” to find the relevant section)

https://github.com/j4mie/idiorm

https://github.com/j4mie/paris

Idiorm was started in early 2010 while I was still writing PHP professionally. I’d heard about Django from a talk @simonw gave at the FlashBrighton meet-up group in 2009 and immediately fell in love. Idiorm and Paris, although not direct attempts to duplicate Django’s ORM, came from frustration that such an elegant ORM and query builder didn’t exist in the PHP world.

So in a roundabout way, Laravel’s ORM was absolutely inspired by Django.

As a side note, I’m still doing Django 16 years later and love it more than ever.

Re:Switching Pip to Uv in a Dockerized Flask / Django App on Tuesday June 24, 2025 @06:48AM (#44364740)
It's worth noting that uv also supports a workflow that directly replaces pyenv, virtualenv and pip without mandating a change to a lockfile/pyproject.toml approach.

uv python pin <version> will create a .python-version file in the current directory.

uv virtualenv will download the version of Python specified in your .python-version file (like pyenv install) and create a virtualenv in the current directory called .venv using that version of Python (like pyenv exec python -m venv .venv)

uv pip install -r requirements.txt will behave the same as .venv/bin/pip install -r requirements.txt.

uv run <command> will run the command in the virtualenv and will also expose any env vars specified in a .env file (although be careful of precedence issues: https://github.com/astral-sh/uv/issues/9465)

Re:Heroku Is Down on Tuesday June 10, 2025 @05:32AM (#44234561)
Things that are down or impacted:

* Heroku and most of Salesforce

* Pipedrive: https://news.ycombinator.com/item?id=44234098

* OpenAI: https://status.openai.com/incidents/01JXCAW3K3JAE0EP56AEZ7CB...

* Lobsters: https://news.ycombinator.com/item?id=44234075

What's the common denominator?

Re:Prepper Disk on Friday April 25, 2025 @07:08AM (#43792339)
"Please state the nature of the medical emergency"
Re:Why the next energy race is for underground hydrogen on Thursday January 23, 2025 @09:44AM (#42804522)
For anyone who wants to understand the economics of hydrogen, I can't recommend this lecture [1] by Michael Liebreich highly enough.

[1] https://www.youtube.com/watch?v=w0Q9cuF8zKg

Re:Why the next energy race is for underground hydrogen on Thursday January 23, 2025 @09:43AM (#42804503)
Do you have a source for your statement about copper? The closest I can find is [1] "The expansion of electricity networks means that copper demand for grid lines more than doubles over the same period". That's a doubling of demand, not of total current circulation.

[1] https://www.iea.org/reports/the-role-of-critical-minerals-in...

Older »