Working with Legacy code #4 : Remove the hard dependencies
- by andrewstopford
During your refactoring cycle you should be seeking out the hard dependencies that the code may have, examples of these can include.
File System
Database
Network (HTTP)
Application Server (Crystal)
Classes that service these kind (or code that can be abstracted to a class) of these kind of dependencies should be wrapped in an interface for easier mocking. If you team starts refering to the interface version of these classes the hard dependency will over time work it's self free.