I use my laptop for building apps and games (2d games, no fancy smancy 3d stuff); gcc + xcode + eclipse (or intellij for that matter) are burning a hole in my i7 (2010 mbp with 8gb and i7). Often (I live in the mountains) I have no or bad internet, so that whole 'cloud compiling' thing won't work for me. That's why performance matters for me and all performing laptops have almost no battery life :) My mbp, during ios debugging sessions, cries for power in less than 2 hours. That's horrible. My core 2 duo 2008 with new battery makes 3.5 hours, but is too slow for a lot of work and to be honest; 3.5 hours is way too little for any serious programming session.
I'm trying to get my consumption pattern down while programming by using more scripting languages (like Lua) so I don't have to compile, can do repl/live coding which seems to be nicer for battery than compiling the whole shebang.
If any devs have ideas how to make this more efficient. If I would be able to work more efficiently (which I now have been using Lua), I can buy an ARM laptop / hybrid like the Transformer prime and do most of my work on that, only going to a higher performance machine for asset (sound/gfx) creation.
I wrote a game solely on the openpandora using lua; it was actually quite a nice experience despite the tiny screen. And that thing actually does over 10 hours with one charge.