We need to aknowledge that jobs come in at least two flavors: deep work and interrupt driven. Software engineering is deep work. Operations is interrupt driven. Don't expect the same environment to be optimal for both.
So we tried open spaces, and they were possibly more terrible (I like them but I'm weird). But proper offices are expensive, so.
Joel Spolsky took offices pretty seriously, I recall this bit: https://www.joelonsoftware.com/2003/09/24/bionic-office/
I'm from New England and I hate "open concept" design.
I like cozy pockets, wood floors, oriental rugs, steam heating, and in general old designs.
I like mazes of interconnecting rooms with low yellow light coming out of sconces.
None of this overhead white sunlight crap.
Despite that I prefer the new bamboo floor open offices any day to the office-space-ugly-color-wall-to-wall-carpet-florescent-overhead-cubicle-fest of yesteryear.
It seems like many of the people planning offices don't even consider lighting.. they just by default put in a drop ceiling with 4x2 flourescent light banks. It's not like it even costs much more to do, well, nearly anything else and it makes a significant improvement to the office environment.
However while I generally like sunlight I find it a little too variable for my liking particularly if your region has seasons. On a cloudy winter day in New England sunlight can have a white dreary look that is sort of depressing.
I sit inside a large cube farm in an office building all day, breathing recycled air and having the life-force drained from my body via overhead fluorescent lighting. It's not unusual for me to feel mildly ill after a few hours at my desk -- and to feel instantly better as soon as I emerge from the building at the end of the day (and in this particular facility, stepping outside frequently is not practicable (at my previous job I could at least go for a walk during lunch)).
I spent about 2 years trying to get a work-from-home job (countless interviews, etc.) but no luck. I live a few blocks from the beach and I fantasize about small things, like being able to step outside for 5 minutes to clear my head and enjoy the sea breeze, or stepping into my kitchen to get a cup of coffee (because I refuse to join the office 'coffee club' which costs money -- hell, we also have a pay-to-play 'water club' if you want to enjoy filtered water from the water cooler -- eff you, I'll drink the room-temperature tap water before I submit to that crap). But alas, it is not to be.
About a thousand people work this way in this building.
I don't remember anyone complaining other than people who previously held even more luxurious offices. And I lived (and worked) thru the cubicle era. Still in one today, love it, not as nice as an office with a door, but it beats open offices.
The ideal was always to use private offices or small offices housing up to 4 persons closely working together.
IIRC there's a chapter on that on peopleware and the following article by joel describes the issues pretty good: https://www.joelonsoftware.com/2006/07/30/private-offices-re...
TL;DR developers need private, quite offices to be productive in their primary work (write code).
Neither is great.