DEV Community

Discussion on: Design Patterns: Factory Method

Collapse
 
sxddhxrthx profile image
Siddhartha Chowdhury

I have already been using the factory method but it is with your article that I can you know about its nunaces. Also, just a suggestion for cleaner code, in your naive solution example, you may want to take package and status initialisation out of if-else block.