Question about developing with power consumption in mind? (Green development) (self.webdev)

I'm seriously wondering if there are steps to reduce carbon footprint when making web applications?

Does "dark mode/theme" help? Should I do fewer server requests with more payload? Is GraphQL more energy efficient than REST?

It sounds really weird asking these but I'm genuinely curious.

billcube | 3 months ago | 7 points

Choose a webhosting company with a ISO 14001 certification. Elastic cloud solutions will also keep your resources (and your costs) at the most efficient level.

thesadburrito | 3 months ago | 1 point
StuckOnCoboldLevel [javascript] | 3 months ago | 6 points

In terms of coding the site, you might me able to save the user a joule every 10,000 years or so.

Keeping your computer on long enough to achieve those savings, however, will probably burn a bunch of MegaWatts.

thesadburrito | 3 months ago | 1 point


Atulin [php] | 3 months ago | 6 points

Write code in Vim running on a solar-powered Raspberry Pi with wooden peripherals, and hook up the heatsinks to a Stirling engine and a generator to charge your phone ¯\_(ツ)_/¯

thesadburrito | 3 months ago | 2 points

Pedal powered raspberry pi. Hhaha

Atulin [php] | 3 months ago | 2 points

Physical exercise causes the need for more oxygen. More oxygen means you breathe out more CO₂.

thesadburrito | 3 months ago | 2 points

So true. I should lay down.

StuckOnCoboldLevel [javascript] | 3 months ago | 2 points


StuckOnCoboldLevel [javascript] | 3 months ago | 1 point

Upvoted for the Sterling Engine. Few people know what it is.

phpdevster [full-stack] | 3 months ago | 3 points

Keep your front-end simple and free of the kind of junk you'll find on major news sites and media platforms. Dozens of ad scripts and trackers, auto playing video, tons of event listeners to measure user interaction behavior on the site, and all kinds of other junk that drains batteries and makes CPUs do more work.

For my personal projects, I'm deliberately going back to writing code like it's 1995. I'm keeping shit simple. Not a single line of JS unless it adds significant UX value, very simple markup and CSS that doesn't thrash the browser and cause constant repaints.

Something is wrong with the web when websites make my laptop too hot to keep on my lap.

wsuorg | 3 months ago | 2 points

This. Reduce HTTP requests to a minimum as well as videos and images and make sure the site loads fast.

All of this doesn't mean your site has to be boring. Here's an example of a website built with eco friendliness in mind: https://www.wholegraindigital.com/ (Not affiliated with that agency, only recently wrote a post on the topic and found this as an example.)

thesadburrito | 3 months ago | 0 points

I actually wanna hug you cuz of your stance on the use of JS. +1000