But then the program will grow...

Let’s use Dependency Injection and Dependency Inversion to FIX this coupled code!

In this video, you will see a program that can convert CSV files to JSON. But then the program will grow. The program also needs to convert JSON to CSV and a well known problem becomes visible: COUPLING. With every change, the program becomes harder to maintain and I will use inversion of control to decouple the code.

Written by Loek van den Ouweland on 2024-05-06.
Questions regarding this artice? You can send them to the address below.