I wonder if people using it for writing code are running docker at all, you read so many comments on HN of how the battery life is incredible (on any thread about comparisons between any Mac and any other laptop) while in my experience a full charge Macbook Air M2 lasts about 6 hours with Docker running instead of the usual 15 it lasts when its off.
I have a 256GB (with easy/cheap room for 768gb) 28c haswell-e server sitting in my basement though too. Costs like 1/3 of a macbook pro if it comes down to it.
The only time I run Docker is to test an image locally, which is in general only to debug my Dockerfile.
The 12+ hours, though, I’m not sure how people are getting that consistently. I feel like VS Code and some LSPs alone make that impossible for me.
I can’t imagine if I were doing some web dev stuff and needed Chrome installed of Safari too.