One Style to Rule Them All

Having seen seen what constitutes a good coding style, what it governs, and why it’s necessary, you must now actually choose one. This is where the fights begin. Disciples of one presentation religion clash with the evangelists of the next, leading to programmer civil war. But the craftsman steps back from these petty squabbles and takes a more balanced view.

As long as you write in a style that’s good, it doesn’t matter what style that is. And there’s no point in arguing about it. There is more than one good style; the quality and applicability of each will depend on context and culture.

KEY CONCEPT

Pick a single good coding style, and stick to it.

It could be argued that if your language standard defined the One True Presentation ...

Get Code Craft now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.