I am full-stack developer and currently study in software engineering in the university 2 course. Currently I am working on a Bookstore project using spring boot for back and React for frontend. So I need to implement 5 software design patterns in my project. However I don't now how to do such implementations and not yet experienced. So I need your help. How I can implement this?
-
Hi Ali! Welcome to stackoverflow. As another user of this great website, I would like to suggest you to take a look at the tour first. https://stackoverflow.com/tour As you can imagine there are guides/rules for asking and/or answering questions for a better community experience. And your question seems inappropriate according to that rules. Simply in here we show what we have tried so far for a specific problem, if something goes wrong then we starts a question if there is none asked before. – Ahmet Orhan Oct 13 '22 at 12:58
1 Answers
First of all I am not here to demotivate you or anything else, what I will suggest you to start making a class diagram and from that class diagram you will notice somethings that will look weird to you, so the things that will look weird to you will be things that will required the implementation of the Design Patterns.
There are basically three types of Design Patterns Creational, Observer and Behavioral. So, as soon as you will create the Class Diagram, you will notice some base cases such as one class should use the single database object or same logic on a single time that is the place where you will be using the Singleton Design Pattern.
Let's say you have created a Class Diagram such that one parent class should not be able to create the objects of other class but the subclasses should do that kind of work, so this is the classic example of Factory Method design pattern and so and so on.
I wish you best of luck for your project as well.

- 33
- 1
- 6