Home›Trey Hunner›Article

On the environmental impact of using LLMs for writing code

Trey Hunner · Feb 20, 2026

AI summary AI-generated, may contain mistakes

The article argues that while the environmental impact of LLMs is a legitimate climate concern, individual use—including heavy coding agent usage at roughly 1,300 Wh per day—represents a relatively small share of a person's energy and carbon footprint (about 1.6% of daily emissions). Drawing on Hannah Ritchie's data-oriented analysis, the author contends that climate change is a collective action problem best solved through systemic measures like carbon taxes, subsidies, and regulations, rather than through individual guilt over LLM usage. The author also notes that the uneven distribution of data centers makes their local impacts on grids and water supplies disproportionately significant, and urges readers to pressure companies and governments rather than focus narrowly on personal consumption choices.

I’ve had many conversations over the past year with friends and colleagues about LLMs. Some conversations have focused on their uses and misuses and some have focused on big picture concerns.

There are many reasons to be concerned about LLMs: job displacement, intellectual property issues, moral hazards. The one I hear the most is the environmental impact.

TL;DR: I think the environmental impact of LLMs is primarily a climate change problem, that the impact of individual LLM use on this problem is relatively small, and that climate change is best addressed through collective action (ideally taxes, subsidies, and regulations). But since systemic solutions aren’t coming soon, understanding the relative impact of specific activities (including LLM use) does matter.

Keep reading

Out of respect for the author only the opening is shown here. Read the rest on the original site, or in HorizonReader with highlights, notes and AI help.

More from Trey Hunner

Python Black Friday & Cyber Monday sales (2026)

AI summaryThis is the author's ninth annual roundup of Python-related Black Friday and Cyber Monday deals for 2026, listing discounts from creators such as Python Morsels, Talk Python, Data School, Reuven Lerner, Brian Okken, and Mike Driscoll, along with Django-related sales compiled by Adam Johnson. The author also highlights their own sale offering lifetime access to Python Morsels, an exercise-driven Python skill-building platform, for $649 through November 30. Readers are invited to submit additional Python-related deals to be added to the list.

Python Morsels Lifetime Access Sale (2026)

AI summaryThrough November 30, Python Morsels is offering lifetime access to its Python skill-building service for $649 (compared to the usual $240 per year), marking the first time the offer includes the new Daily Recall spaced repetition system launched in September. The service is built around deliberate practice through exercises, hints, and screencasts, and lifetime access covers 270+ exercises, 240+ screencasts, 300+ articles, 500+ Daily Recall questions, courses, and all future content updates. A 7-day free trial and a 30-day money-back guarantee are available for new users.

Systems, gates, and rage

AI summaryThis article presents the text of a PyCon US 2025 lightning talk arguing that LLMs, like Stack Overflow and animal farming, are messy but potentially useful tools whose harms should be addressed through system-level solutions rather than by blaming individual users. The author acknowledges legitimate concerns about LLMs, such as intellectual property, environmental impact, and job disruption, while noting these tools are not going away. Ultimately, the talk urges readers to reflect before criticizing whether they are gatekeeping, and to channel their frustration about new technologies into something more productive.

Python Morsels now has spaced repetition

AI summaryPython Morsels has launched Daily Recall, a spaced repetition system for Python programmers that uses the FSRS algorithm to prompt users with quick recall questions just before they would forget the material. The system is built on the principle of active recall—retrieving information from memory rather than re-reading—which helps learners beat the forgetting curve with just a few minutes of daily practice. Most packs (covering topics like time complexity, uv, string methods, and f-strings) are free, with the rest included in the All Access plan, and early users reported retaining 25 to 50 new facts after their first month.

A Dolly Parton developer

AI summaryThe author, feeling both sad about Dolly Parton's passing and nostalgic while friends gather at DjangoCon US, reflects on Rikki Endsley's keynote about being a "Willie Nelson developer" and extends the concept by proposing a "Dolly Parton developer" mindset. They highlight three of Dolly's admirable traits—knowing your rights (refusing to give Elvis half the publishing to "I Will Always Love You"), exiting with grace (leaving the Porter Wagoner Show amicably), and prolifically writing the next song regardless of publication or success. The piece closes with an encouragement to developers to embody these values and keep creating.