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.

Press + to interact
Collaborative filtering
Collaborative filtering
  1. We have created a sub-package called lesson2 inside the io.datajek.spring.basics.movierecommendersystem package for the code example shown in this lesson.The package contains the MovieRecommenderSystemApplication.java, ...

Access this course and 1400+ top-rated courses and projects.