πŸ“š Book Club

← The Pragmatic Programmer, 20th Anniversary Edition

Week 4 of 9

Pragmatic Paranoia

You can't write perfect software, so write code that notices when things go wrong and says so loudly.

This week's reading

Pragmatic Paranoia (5 topics)

By the end of this week you'll be able to:

Reflect & discuss

  1. Find a try/except (or equivalent) in your code that swallows an error. What would happen if it crashed instead?
  2. Share a time from your own work where this chapter's lessons would have helped, or where you learned them the hard way.
  3. What's one thing from this chapter you'll try in your own work? When you have, share how it went in #wins, and link a gist or repo if you've got one.

Put it into practice

Contract pass (30 min): Pick one core function. Write its preconditions and postconditions as assertions or type constraints, then add tests that break each one.

Silent failure hunt (20 min): Search your codebase for bare except, empty catch, or ignored return values. Fix one so it either handles the error for real or lets it surface.

Go deeper

Reading along? Join the club to discuss each week's prompts with other developers.