There is absolutely no evidence in the literature that shows that cubicle layouts are better than any of their alternatives for software development work; they should be avoided if at all possible.
Choose the ability to concentrate or the ability to coordinate. It’s rather foolish to choose neither.
“A Communal Workshop or Doors That Close?” Jorge Aranda - Making Software