Yes but a decade+ ago, they weren't a replacement for a desktop, so you ended up having both. Now even mid end laptops (or "low end" Macs) are totally feasible as replacements.
I bought my last desktop in 2010 and I can't imagine buying another one.
I still do 95% of my development on a desktop, I just can't see ever not doing that, I'm older now and a good desk, good chair, 3 big screens takes up enough space that a tower isn't taking up much more space.
That and I can put hardware into a PC for half the price of a Macbook Pro that will absolute annihilate the laptop on performance.
Portability and power efficiency does impose a constraint.
For me the trade off of having two machines is worth it rather than having one machine that is permanently hobbled by been designed for a use case I rarely use makes no sense.
I do the same, 95% of my development with a Macbook Pro with 2 big screens, keyboard and mouse attached. Don't even touch or move it on most days.
A desktop would be much cheaper - but I would still need a decent laptop for the 5% time when I'm not at my desk, so the savings aren't that much any more. And keeping development environments, VMs, config files, keyboard layouts, etc syncronized on two separate computers is too much extra work.
I disagree, I think how difficult it is to keep things synced varies significantly between users. Sure, its easy if your work is consistent and you're disciplined but if you find yourself switching between very different projects frequently the overhead of syncing machines and setting up software repeatedly can become significant.
It takes some discipline.
I run a small consultancy/agency, in any given week I'm switching between 3-5 projects (and odd bug fixes to others).
I've automated my entire workflow with vagrant and ansible.
I have
/projects/<client>/<codename>/site (pr /app)
/projects/<client>/<codename>/vagrant
/projects/<client>/<codename>/<others>
Each client gets a "team" in bitbucket and orchestration becomes no harder thangit pull && vagrant up.
It works great on projects that have a simple structure (webserver/db) and projects that have complex configurations with ES/Redis as well.
The trick is to always treat configuration as code and never make manual changes to a VM (or more correctly, always make a manual change then a change to configuration code).
As an entirely added side benefit I can pull a project from two years ago down and be up in a fraction of the time without polluting my host OS.
Even when that project is currently on 14.04 with particular weird dependencies (exactly this version of wkhtmltopdf etc).
Longer term I'll probably look at docker or something but vagrant/ansible has worked out great (some projects aren't even using ansible, just a bash script).
So while most people are moving to laptop-only, even us hold-outs are seeing more energy efficiency in desktops.
What vendors have done is provide computers with the same power envelope, but much more performance so they may do your calculations @ 35 watts, and then immediately cut all power to large swaths of the CPU so as to curtail power use by at least a few watts, if not 10 watts (depends on your CPU).
You obviously don't play video games, do CAD or video stuff or develop and compile large software. My desktop is never replaced by my laptop.
Just a couple of years ago I had a 800w PSU to be able to run modern games. Now I have a mini-ITX machine with a 450w power supply with a lot of room to grow. I'd estimate actual power usage to be 50-60% the nominal capacity at peak.
It's hard to compete with a laptop in power consumption, of course. My CPU's TDP is higher than 35w. It's an I3, so Intel says 51W TDP. It will still run circles around the laptop's cpu.
Jeeze, my desktop, a full socket 1150 Core i3, is under 100 watts. Heck, I have a file server with twelve 3.5" hard drives and a 4 core socket 1150 Xeon that draws under 200 watts with everything spinning.
>Laptops have always been substantially more efficient than desktops.
No, they haven't; not on a MIPS/Watt basis. A laptop-to-desktop comparison is entirely valid. I use a laptop now, and a desktop in the past; I do the same work, and I get better performance out of my modern laptop. I even have dual 24" monitors on the laptop (docking station).
Demanding a comparison between desktops of the mid-2000s and desktops of now is like demanding a comparison between the fuel consumption of a Corvette from the 1980s and one from now, instead of recognizing that I can buy an economy car now that gets better performance than the 1980s Corvette while also getting much better fuel economy. If you're comparing on the basis of performance and capability, you don't need to stay with the same class of device, because capabilities and performance have changed so much over time.
Why? When we're talking about overall usage, functional replacements are far more relevant than direct device-category to device-category comparisons. In much the same way, the fact that my mom has replaced her desktop with a tablet is the directly relevant comparison for my mom's "electricity usage due to personal computing".
Nope, in 2007 a lot of people used and needed desktops that are more than satisfied by the available computing power on a laptop today. It's only an apples-oranges comparison if everyone were still using desktops, which is not the case.
Just slap a full sized monitor and a keyboard+mouse, and its more capable as a thin desktop (ala iMac) than the actual thing, and when you want to leave, just unplug all that shit and leave.
The only call for full sized desktops is people like me, where cramming in full sized GPUs, more than one drive, and 32+GB of RAM is required.
That, or when you need more CPU horsepower than what a laptop will provide. Even if it is not thermal throttled, if it is not a big laptop, odds are it is using a very low power part.
This is very beneficial for servers and workstations too, as it keeps your power bill much lower, and makes it not financially viable to stick around on 8+ year old hardware, where it draws 250 watts for half the performance of a year or two old system, that will pull 60 watts minimum, and while topping out at 250 watts, will like average around 70 watts or so, saving you about $180 a year at $0.12/kwh.
Edit: Missed a zero, reworded last sentence.
If they gave me a modern version at 3200x1800 with a decent i5 I'd be buying another.
That's exactly why I'm still stuck on a desktop.
No, it shouldn't. Many people use laptops today for the things they used Desktops in the past.
In that time I also went from a CRT TV to a plasma, and at some point in the next year or so I'll probably swap that out for a (lower power) OLED TV or similar.
(As an aside, 35W for a laptop today seems excessive. Assuming PowerTop is accurate, my laptop is using 9W right now. While charging it's undoubtedly using more, but even plugged in while fully charged, with less of the power-saving features enabled, 35W seems a bit high.)
That's wall plug consumption, and a pretty beefy laptop, i7, high res screen, as much RAM as it will hold and a large (spinning) disk (Lenovo T540p).
Even totally idle it is still around 20W.
Apples to Oranges though (or Apples, but still). The comparison should be a laptop from 2007. I ran a house on solar electricity and windpower back then, my laptop was about 35 Watts according to the e-meter connected to it, my present day laptop is roughly the same.
Laptops have always been substantially more efficient than desktops.