I am trying to learn more about patterns and want to build some small application for learning purposes. I want to use Builder and Abstract Factory to create an application that creates different kind of documents like HTML and Markdown. But I don't really understand how to start.
first step is that I need to be able to create elements like paragraphs, headers etc.. and possibly store them in a list.
I understand that I also need to create and decide what kind of document to create.
Would it be best to use a Abstract Factory to create all the elements and then use a builder to create the actual document which accepts a list of elements that can be parsed in the correct way?
And will you succeed? Yes you will indeed! (98 and 3/4 % guaranteed) - Seuss. tiny ad:
global solutions you can do in your home or backyard