Chapter 7

Defensive Programming

You’ve seen how to select and apply concepts and principles of security and resilience from the very start of product development. You saw how to map the best practices to nonfunctional requirements (NFR)s to prove that minding the security of an application brings along for the ride most of the other characteristics you find desirable in high-quality software. In Chapters 5 and 6, you saw how to apply these practices in the design work of the software development lifecycle (SDLC) to set the stage for programming best practices and techniques found in this chapter.

7.1 Chapter Overview

Defensive programming is exactly what it sounds like. Before you’re handed the keys to your first car (one would hope), someone ...

Get Secure, Resilient, and Agile 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.