The Rules of Programming: How to Write Better Code

- 50%

Original price was: $5.00.Current price is: $2.50.

Add to wishlistAdded to wishlistRemoved from wishlist 0

Product Specs:

  • File Type: PDF
  • File Size: 7.0 MB
  • Book Language: English
  • Total Page Count: 347
  • Instant Download

Seasoned game developer Chris Zimmerman captures hard-won lessons from decades of writing production software in The Rules of Programming: How to Write Better Code. This is not a dry language manual; it’s a practical collection of 21 rules that help programmers think more clearly about code, design, debugging, and collaboration.

What Makes the Rules Approachable 💻

Zimmerman presents each rule with a memorable name, real-world context, and plenty of C++ examples. The writing is direct and often humorous, avoiding academic jargon. Instead of prescribing rigid methodology, the rules encourage thoughtful decision-making—whether you are simplifying a function, naming a variable, or deciding when to optimize.

A Closer Look at the Rules

The book covers a broad range of programming challenges, including:

  • As Simple as Possible, but No Simpler – balancing clarity and complexity.
  • Bugs Are Contagious – how defects spread and why early fixes matter.
  • A Good Name Is the Best Documentation – using naming to communicate intent.
  • Generalization Takes Three Examples – avoiding premature abstraction.
  • Eliminate Failure Cases – designing code that reduces error paths.
  • Code That Isn’t Running Doesn’t Work – the importance of testing and execution.
  • Sometimes the Bigger Problem Is Easier to Solve – reframing difficult tasks.

Beyond the Code

Several rules focus on team dynamics and process, such as Code Reviews Are Good for Three Reasons, Big Teams Need Strong Conventions, and Work Backward from Your Result, Not Forward from Your Code. The final chapter, “Making the Rules Your Own,” helps readers adapt these principles to their own projects and environments. Zimmerman also reminds us that sometimes you just need to “hammer the nails”—knowing when to stop refining and start shipping.

Helpful Guides for Python and JavaScript Programmers 📚

All code examples are written in C++, but the book includes two appendices that act as Rosetta Stones. Appendix A translates C++ concepts for Python programmers, while Appendix B does the same for JavaScript developers. This makes the material accessible even if you have never written a line of C++.

Why This Book Gives Back ✨

Every royalty from The Rules of Programming goes to Girls Who Code, an organization dedicated to closing the gender gap in technology. By purchasing this ebook, you support that mission while improving your own coding skills.

Who Should Read This

Whether you are a junior developer building a foundation, a senior engineer looking for a fresh perspective, or a team lead seeking better practices, this book offers valuable insights. The rules are timeless and language-agnostic, making them relevant to any programmer who wants to write better code.

Add The Rules of Programming to your digital library and start applying its lessons to your next project today.

User Reviews

0.0 out of 5
★★★★★
0
★★★★★
0
★★★★★
0
★★★★★
0
★★★★★
0
Write a review

There are no reviews yet.

Be the first to review “The Rules of Programming: How to Write Better Code”

No product has been found!
The Rules of Programming: How to Write Better Code
The Rules of Programming: How to Write Better Code

Original price was: $5.00.Current price is: $2.50.

Digital Delights
Logo
Shopping cart