Having worked as researcher/dev in both private office and open space setup, I am absolutely convinced that private offices are way more productive than open office setup for researchers and developers. Most, if not all, of my colleagues feel the same. In fact, I don't think I will ever accept an offer from a mature company (not startup) which houses its developers in open space.
The trend in most modern workspaces is to have mixed use. Generally open plan for most day-to-day work and then a variety of private areas. For example offices and cubicles that are shared. Development is always tricky because often you need clear air to solve problems but then occasionally collaboration is required.
1. Open plan for day-to-day with some private rooms. 2. Private rooms for day-to-day with lots of breakout rooms (or similar).
I think the first is cheaper (lower square footage), but I'd much rather work in the second.