Refactoring 024 - Replace Global Variables with Dependency Injection
TL;DR: Replace global variables with dependency injection to improve testability and reduce coupling. ๐
Problems Addressed ๐
Hidden Dependencies
Tight Coupling
Testing Challenges
Maintainability
Singletons
Related Code Smells ๐จ
https://maximili...
maximilianocontieri.com4 min read