Loading
Cover of The Rules of Programming: How to Write Better Code

RefHub featured

Book guide and evaluation

The Rules of Programming: How to Write Better Code

Chris Zimmerman

English Unordered Programming Languages
5.0 / 5

1 reviews

2023

Published

347

pages

307

views

This philosophy-of-programming guide presents a unique and entertaining take on how to think about programming. A collection of 21 pragmatic rules, each presented in a stand-alone chapter, captures the essential wisdom that every freshly minted programmer needs to know and provid

Before you read

What will you get from this book?

This philosophy-of-programming guide presents a unique and entertaining take on how to think about programming. A collection of 21 pragmatic rules, each presented in a stand-alone chapter, captures the essential wisdom that every freshly minted programmer needs to know and provides thought-provoking insights for more seasoned programmers.Author Chris Zimmerman, cofounder of the video game studio Sucker Punch Productions, teaches basic truths of programming by wrapping them in memorable aphorisms and driving them home with examples drawn from real code. This practical guide also helps managers looking for ways to train new team members.The rules in this book include: As simple as possible, but no simplerLet your code tell its own storyLocalize complexityGeneralization takes three examplesWork backward from your result, not forward from your codeThe first lesson of optimization is don't optimizeA good name is the best documentationBugs are contagiousEliminate failure casesCode that isn't running doesn't workSometimes you just need to hammer the nails

Ask this book

Your question is answered in the context of this title and author. Each answer uses 2 points.

Sign in to ask the book assistant.

Reader reviews

1 reviews, 5.0 average out of 5

Nandan Vatsyayan

2025/06/07

5 / 5

The author is forthright that the rules may not apply to all situations, but many of the rules are general enough to be applied to most environments. The examples used to illustrate the rules provides insight into game programming, an area that most of us can only relate to via the end product. The book is a well written and thought provoking take on computer programming best practices. A worthy addition to your library.

And as the author suggests, take inspiration from the rules and define a few that fit your situation!

Write a review

Sign in to publish a review.

Reader questions and answers

Ask a focused question and learn from the community.

Sign in to ask or answer a question.

No questions yet

Be the first to ask a clear, useful question.