How to decide which design pattern best for the concept. Ex. Metro railway , ticket reservation,
Asked
Active
Viewed 72 times
-1
-
1There is no general procedure or algorithm for deciding which is best. Indeed, often there is not even an objectively correct answer. But finally, you don't use design patterns for concepts ... or real world things. You use design patterns for program designs; i.e. when you are trying to write a program to **do** something. – Stephen C Aug 05 '18 at 02:58
-
How to practice the design patterns for program design. – user3032819 Aug 05 '18 at 03:20
-
By practicing; i.e. by doing it. – Stephen C Aug 05 '18 at 03:43
-
Could you please share some resources or materials for practice with real time problem – user3032819 Aug 05 '18 at 11:56
-
That question is off-topic. But try this Q&A - https://softwareengineering.stackexchange.com/questions/79260/how-can-i-practice-design-patterns-and-refactoring-in-a-deliberate-way. Or Google for "design pattern practice questions" – Stephen C Aug 05 '18 at 12:03
1 Answers
0
How to design is a better (or perhaps the right) question rather than which design pattern. First, try to get the concept in more detail. Then try to apply object-oriented (oo) analysis and design principles to understand and develop the concept in terms of object design. In the process one comes to identify and apply design patterns. Design patterns is just as aspect in the object-oriented analysis, design and development process. Not just oo - it can be any software design; and also in general.
Without more details about the concept and what one intends to do with it further - clearly - there is no way to think further, much. One can imagine only.

prasad_
- 12,755
- 2
- 24
- 36