Use your singletons wisely: ten years later - The Code Whisperer

Updated . Posted . Visible to the public.

While injecting the dependency appeared to make the classes more tightly coupled, it simply revealed the coupling that already existed. A was already tightly coupled to B and B to C. When we tried to inject the dependency, we made that coupling more explicit and easier to remove.

Last edit
Keywords
development, java, software-design
License
Source code in this card is licensed under the MIT License.
Posted by Lexy to makandra dev (2010-08-08 16:48)