Managing Dependencies
Identifying dependencies and implementing your code around common interfaces that the dependencies use will help you in many ways. You’ll be able to do the following things:
- Avoid waiting for another team or even yourself to finish a complicated and necessary component
- Isolate your code and make sure it works, even if there are bugs in other code that you use
- Achieve greater flexibility with your designs so that you can change the behavior by simply changing dependent components
- Create interfaces that clearly document and highlight essential requirements
In this chapter, you’ll learn what dependencies are and how to design your code to use them. By the end of this chapter, you’ll learn how to finish writing your code faster and prove that it works, even if the rest of the project is not ready for it yet.
You don’t need to be using TDD to design and use dependencies. But if you are using TDD, then the whole...