I'd agree with you if the argument was "full desktop setup" vs "just a laptop". I sometimes envy people who can spend all day using only their laptop. After a few hours bent to look at my 12 inch screen, my neck and back scream.
But when using a laptop with a dock, a big external monitor, external keyboard, mouse etc, I don't see the point in using a desktop machine anymore.
Unless you really need the mobility, a desktop is just the simpler setup, and (at least for PCs) can run more quietly under heavier load, because of better thermals due to the larger case. It’s also simpler to just add another SSD or more RAM when you need it, add/replace the GPU, etc.
That's true if you only have one location to worry about. But a laptop is simpler if you need to, for example, travel between home and work while keeping the OS / apps / files the same.
Yes, that’s why I wrote “unless you really need the mobility”.
Some employers don’t allow company data (which includes all dev work) on computers outside the company premises. Work from home is done via remote desktop. In that case, the work environment is completely independent from your location and client hardware.
But when using a laptop with a dock, a big external monitor, external keyboard, mouse etc, I don't see the point in using a desktop machine anymore.