Separate Changeable Code Using Factories
Vaskaran Sarcar · Apress eBooks · 2021
A developer’s end goal is to make an application that meets the customer’s requirements. The code must be easily extensible, maintainable, and stable enough to meet future needs. It is tough to write the best version of a program on the very first attempt. You may need to analyze the code and refactor it several times. In this chapter, you will see such a scenario and learn how to use factories. To make the discussion simple, I start with a small program. We’ll keep analyzing the program and modify it accordingly.