16 Tour

I hope that if you follow the practices presented in this book, you’ll have a better chance of producing code that fits in your head; code that will sustain your organisation. What does such a code base look like?

In this last chapter, I’ll take you on a tour of the example code base that accompanies the book. I’ll point out some highlights that I feel are particularly compelling.

16.1 Navigation

You didn’t write the code, so how should you find your way in it? That depends on your motivation for looking at it. If you’re a maintenance programmer and you’ve been asked to fix a defect with an attached stack trace, you may immediately go to the top frame in the trace.

On the other hand, if you have no immediate goal and you just want to ...

Get Code That Fits in Your Head: Heuristics for Software Engineering now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.