Virginia Woolf argued that a woman writer needs a room of her own. In Silicon Valley, some companies are questioning whether software programmers even need their own cubicles.

Their method is "pair programming"—where two people share one desk and one computer. One person is the "driver," controlling the keyboard and typing in code. The other "navigates," monitoring design and scanning for bugs.

Pairing...