concept new behavior in category cloud

This is an excerpt from Manning's book Object Storage Across the Cloud.
At many established organizations, your day-to-day work as a developer involves not only writing new applications, but updating existing ones. When you’re tasked with adding a new feature to an existing application, your goal is to extend the functionality of that application, introducing new behavior by adding code.
In an ideal extensible system, adding new behavior involves adding new classes, methods, functions, or data that encapsulate the new behavior without changing existing code (figure 7.1).
Compare this with a less extensible system, where new functionality may require adding conditional statements to a function here, a method there, and so on (figure 7.2). That breadth of changes and their granularity is sometimes referred to as shotgun surgery, because adding a feature requires peppering changes throughout your code like the pellets from a shotgun round.[1] This often points to a mixing of concerns or an opportunity to abstract or encapsulate in a different way. Code that requires these kinds of changes is not extensible; creating new behavior is not a straightforward endeavor. You need to go searching through the code for exactly the right lines to update.