But no setup works for everyone. And we need to stop pretending that open office plans are some poorly thought out pranks invented by clueless managers that offer nothing to developers.
I am a developer. I am not an extrovert. I love working in an open office, and the one job I had almost 10 years ago that was rows and rows of offices made me MISERABLE. I almost quit but luckily was able to move to a team that had a team area with an open plan.
Fact: In today's age of agility, rapid development, minimum viable products, continuous deployment, and short iterations it is much more important that you can discuss things with your coworkers and stakeholders quickly and figure out if you are working on the right thing, rather than going away for 6 months into some basement, close the door, and come back with a finished product.
Fact: Distractions are cultural not physical. Provide the team with good quality headphones, shame people who have non-silent notifications on their devices, create a policy where people can indicate when they're deep in thought on something complex and would prefer not to be distracted (eg. Do Not Disturb status on internal chat that you check before messaging someone or tapping them on the shoulder), and provide flex space people can go to on a case by case basis for privacy. Do this and all the problems with "focus" that open-office haters complain about GO AWAY.