8 Being pragmatic

This chapter covers

  • Why being pragmatic matters
  • Why you should never stop refactoring
  • Why you should never stop learning about object-oriented design

Congratulations! You’ve finished this journey through the six most important characteristics of simple object-oriented design:

  • Small units of code

  • Consistent objects

  • Proper dependency management

  • Good abstractions

  • Properly handled infrastructure

  • Well modularized

In this chapter, I discuss a few pieces of advice that I also consider essential to keep object-oriented designs as simple as possible. Some were briefly mentioned in previous chapters but are so important that I’ve dedicated a separate section to them.

8.1 Be pragmatic and go only as far as you must

Get Simple Object-Oriented Design 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.