Hi Jiří!

I hope you enjoyed my article and thanks for taking the time to write a response. It’s much appreciated :)

It’s a factory that adheres to the Open/Closed principle.

So, let’s say you implement a factory using switch or if-else.
How do you extend it? If the answer is adding another if-else or extra case, you’ve got yourself into a lot of trouble. Unless it’s a stupid simple application of course.

Tech writer with +1M views. Sharing my opinion and what I learn. .NET backend engineer in FinTech. New YouTube Channel https://bit.ly/3vxqNHj

Tech writer with +1M views. Sharing my opinion and what I learn. .NET backend engineer in FinTech. New YouTube Channel https://bit.ly/3vxqNHj