I normally avoid the if-else to reduce the Cyclomatic complexity. Since here in the example you are using Switch I dont think this would make a lot of difference in complexity background. Could have used a Map to return string which is the name of the class and used Type class to create the newInstance. Really like your videos keep them coming.
This is by far the most helpful video on DI. These patterns immediately makes sense to me.
After 1 day to learning. I have applied so many techniques in the production. Thanks again, Sir.
Very helpful video thank you!
I normally avoid the if-else to reduce the Cyclomatic complexity. Since here in the example you are using Switch I dont think this would make a lot of difference in complexity background. Could have used a Map to return string which is the name of the class and used Type class to create the newInstance. Really like your videos keep them coming.
Thank you!
Thanks so much, sir.