DEV Community

Discussion on: Factory Method Design Pattern

Collapse
 
nineismine profile image
nineismine

Great Article! I have been working on implementing a Factory method for parsing files which all have different parse methods. Essentially we pass in an unparsed file type the factory looks at a specific part of the file (which tells it what kind of file it is dealing with) and then we return the proper parsed file result! This lines up with my understanding of it!

Collapse
 
patzistar profile image
Patrick Schadler

Thank you for your insights. As you said we both share the same understanding of it 🤝