The Rules of Programming: How to Write Better Code - Paperback
by Chris Zimmerman (Author)
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 standalone 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 simpler
- Let your code tell its own story
- Localize complexity
- Generalization takes three examples
- Work backward from your result, not forward from your code
- The first lesson of optimization is don't optimize
- A good name is the best documentation
- Bugs are contagious
- Eliminate failure cases
- Code that isn't running doesn't work
- Sometimes you just need to hammer the nails
| Author | Chris Zimmerman |
|---|---|
| Format | Paperback |
| Pages | 343 |
| Publisher | O'Reilly Media |
| Published | January 17, 2023 |
| ISBN-13 | 9781098133115 |
| Condition | Brand new |
Shipping
Every book ships brand new from a US warehouse within 1–4 business days and travels by USPS Media Mail with tracking. Most orders arrive 5–10 business days after you order; holidays and bad weather can add a few days.
Free shipping on orders $50+, otherwise $4.99 per order. We deliver to all 50 states, APO/FPO addresses and US territories. Shipping policy
Damaged book? Returns
If your book arrives damaged, defective or isn't the title you ordered, email support@readridge.com within 7 days of delivery with your order number and a photo. We'll send a free replacement or a full refund — no need to ship it back unless we ask.
Because each book is shipped new and sealed to you, we can't accept returns for change of mind or a title ordered by mistake. Please double-check the format and edition before checkout. Refund policy
Sending it as a gift?
Just enter the recipient's shipping address at checkout. The box arrives labeled “Your Book Order”, with no receipt or prices inside — gift-ready by default.