DEV Community

Discussion on: Why Switch Statement is Bad

Collapse
 
eslamelkholy profile image
eslamelkholy

very nice one we can use Factory Pattern and Refactor Switch Statement to be exactly the same as we did here