Decoupling Components
Learn how to change the tightly coupled code to loosely coupled.
We'll cover the following
Right now, the RecommenderImplementation
class is hard coded to use the ContentBasedFilter
class. If we need to change the way our application recommends movies, we will need to change the code of the RecommenderImplementation
class.
Say, we want to switch from content based filter to collaborative filter and take into account the preferences of users having a similar watch history.
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.