Venthe / Design-Patterns

100 stars 11 forks source link

Add a description to what the design patterns are and what they try to achieve #1

Open Venthe opened 5 years ago

JC-85 commented 5 years ago

@Venthe I think it would be good if there was a README.md to go together with each example. That way you could get a idea of what the pattern is supposed to accomplish before diving into the code.

Are you taking pull-requests? I´d be up for expanding on the singleton example.

Venthe commented 5 years ago

I sure do; though I think that it should be in code. What do you think?

JC-85 commented 5 years ago

I think the implementation should be commented through-out with explanations on each step. You could also preface every class with a description of its purpose. But each pattern should also be accompanied by an explanation of the theory behind the pattern. I got a pull request ready with how I would mange it, but feel free to reject it if it doesn't fit your taste.