Remove Circular Dependencies by Using Dependency Injection and the Repository Pattern in Ruby
There are dependencies between gems and the platforms that use them. In scenarios where the platforms have the data and the gem has the knowledge, there is a direct circular dependency between the two and both need to talk to each other. I’ll show you how we used the Repository pattern in Ruby to…
Sources
- T1Remove Circular Dependencies by Using Dependency Injection and the Repository Pattern in RubyStripe / Shopify Eng / Netflix TechBlog / Dropbox Tech / Slack Eng / Spotify Eng