URL details: blog.danielwellman.com/2014/04/code-pattern-separate-configuration-from-behavior.html

URL title: Code Pattern: Separate Configuration from Behavior - Stay on Target
URL description: You have an object that requires data from some other part of your system to do its job. The object has some code that gathers the data it needs from the other parts of the system, as well as methods to perform its services using that data. Tests become difficult to write, the object is hard to reuse in different contexts, and changing the configuration requires making changes in multiple places. Therefore: Pass in the data the object needs as a parameter, either via the constructor or as a method param
URL keywords: pattern, design, dependency injection, context independence, behavior, factory, separate, configuration, object-oriented programming, obj
URL last crawled: 2022-06-16
URL speed: 0.224 MB/s, downloaded in 0.200 seconds

open external url

We found no external links pointing to this url.