Showing posts from December, 2009

Environmentally friendly programming

When someone talks about CO2 emission, we usually think about big industries, cars and light switches. We don't think about code efficiency. But "bad" code is actually bad for the environment.

A couple of days ago I read a post that made me think about programming and the environment. It's not a long post and i recommend all developers to read it. The conclusion of it was that:
If C++ would have been used instead of PHP [on facebook], then 22 500 servers could be powered down (assuming a conservative ratio of 10 for the efficiency of C++ versus PHP code), or a reduction of 49 000 ton [CO2].

In a small scale it doesn't matter much if you write inefficient code. But if you're working on applications/systems that will be run by a lot of people, especially in a server environment, the difference is huge. I'm not suggesting that we should super optimize our code, because code that is too optimized is often hard to maintain and might cause similar effects.


jQuery Floating Header Plugin v1.1.1

New version out which fixes a lot of problems width CSS selectors.

Check out the plugin on my old post, or on, or at the new google code project page for all my little projects.