I just started reading design patterns and I have some basic doubt and was not clear even after going through many articles. Can someone please explain me following? I have seen many similar posts here but they are not very clear.
How did they segregate in to structural and behavioural patterns?
Is there any good book to follow?Now I am following Head first design patterns.
What is the easy way to remember all these patterns and apply? I thought of remembering UML diagram and concept for each pattern. Do you suggest any other way?
- How did they segregate in to structural and behavioural patterns?
From Gof book
"Structural patterns are concerned with how classes and objects are composed to form larger structures. "
some structural patterns:
etc
"Behavior patterns are concerted with algorithms and the assignment of responsibilities between objects. Behavioral patterns describe not just the patterns of objects or classes but also the patterns of communication between them."
Some behavior patterns:
etc
- Is there any good book to follow?Now I am following Head first design patterns.
This question is out of scope of SO since we aren't really supposed to recommend books.
- What is the easy way to remember all these patterns and apply? I thought of remembering UML diagram and concept for each pattern. Do you suggest any other way?
UML diagrams of design patterns are confusing because several patterns have identical or similar enough diagrams that you can't tell them apart. Unfortunately, the easiest way is to just use them enough to just know how to use them. And keep a Design Pattern book handy to find motivations for the lesser used patterns you don't remember off the top of your head.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With