Skip to Main Content
The Rules of Programming
book

The Rules of Programming

by Chris Zimmerman
December 2022
Beginner content levelBeginner
343 pages
7h 36m
English
O'Reilly Media, Inc.
Audiobook available
Content preview from The Rules of Programming

Rule 21. Sometimes You Just Need to Hammer the Nails

Programming is an inherently creative, intellectually challenging activity. That’s a big part of why I love it, and you’d probably say the same. Every problem is different than the ones before, requiring a little bit of cleverness to solve—though, per the Rules in this book, hopefully not too much cleverness!

But not every problem has an elegant solution. Even the most exciting programming assignment has moments of drudgery: tasks that aren’t interesting, that it’s difficult to get excited about, that nobody wants to do. It’s easy to work on the exciting stuff instead, putting off the drudgery and secretly hoping that someone else on your team will take it on instead.

With that setup, the moral of this chapter will come as no surprise—don’t skip the drudgery. That unlovable task isn’t going anywhere. There’s no hidden army of code elves who’ll do the work while you’re sleeping. And half-completed tasks are a slow poison, working to kill your project.

The key is to know the danger signs. You’re a clever person,1 more than clever enough to rationalize away the necessity of the tasks you don’t enjoy. That’s especially true if you have a long backlog of more interesting tasks to get to.

Knowing the sorts of tasks that you personally tend to ignore is a key bit of self-knowledge. Your list may not match mine, or match your coworkers’—one programmer’s drudgery is another programmer’s day at the park, to coin a phrase. Once you can ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The Programmer's Brain

The Programmer's Brain

Felienne Hermans
Design It!

Design It!

Michael Keeling
The Art of Clean Code

The Art of Clean Code

Christian Mayer

Publisher Resources

ISBN: 9781098133108Errata PageSupplemental Content