Chapter 5Working with Code

“A designer knows [s]he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away.”

Antoine de Saint-Exupery

Effective software development requires a mastery of both the architecture and specific strategies for improving, testing, and debugging the code base.

This chapter introduces these strategies, which can be used either for correcting a defect or adding a new feature to the software. Both these activities require the use of refactoring, testing, and debugging tools and techniques.1

When we work with code, we use both synthesis (writing new code) and analysis (criticizing and revising existing code). Four central activities are associated with code analysis:

Get Software Development 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.