Back to bits

September 28, 2025

Composition: Code & Photography

photography engineering creativity

The principles of visual composition in photography apply directly to code architecture. Balance, hierarchy, and negative space matter in both. In photography, we use the rule of thirds to create visual interest. In code, we use separation of concerns.

Both disciplines reward those who understand when to add elements and when to remove them.

The best compositions — whether in pixels or in code — feel effortless because of the invisible effort behind them.

I’ve spent a good time chasing the “perfect shot” and the “perfect architecture.” Both reward the same discipline: remove the unnecessary. In photography, negative space directs the viewer; in code, clear boundaries and simple interfaces do the same for readers and maintainers.

If you are interested, I have a longer rant about this on Lessons from Photography.