SOFTWARE DEVELOPMENT DESIGN PATTERNS
Meaning
A design pattern is a repeated solution that is designed to help you achieve a goal during development. It is not a code, but rather an idea or guideline on how to best solve a problem.
1. Creational Patterns
These patterns focus on the way objects are created. For example, singleton pattern ensures that there is only one object and it can be used everywhere. The object is created by specifying the name of the class. A factory provides an interface to create a group of related objects, whereas a constructor creates a complex object in stages, which makes it possible to build it in different ways. It can be built in different forms. Prototype is the process of creating a new object by copying an existing object. This is called prototype.
2. Structural Patterns
The interactive pattern focuses on the way different platforms and objects are connected. Let’s see how the adapter works like a tool to connect two different interfaces. The bridge works like a tool to merge two different interfaces. The bridge separates the interface and its functions so that both can be changed independently. The entire object is represented as a tree in which individual and collective objects are treated equally without discriminating between the two. The decorator pattern adds additional functions to objects at run time. Presents complex systems as simple interfaces. Shares similar objects to increase memory on the fly. The memory is saved. The delegate provides a delegate to control access to another object.
3. Behavioral Patterns
Behavioral patterns Let’s move towards behavioral patterns and know what things are kept in mind while working in it. First of all, if the state of a pressure changes, then all the pressures connected to it should get informed. Strategy allows changing the state of any command on a run item. Encapsulates command requests as objects so that they can be stored or reused. Condition changes the behavior of objects based on the condition on which they should be. It decides the method of action but some steps are defined in the class.
Constructional pattern, creative pattern, practical pattern, all these patterns tell us that how much attention we should pay to which things so that our things get done in a proper manner because the chances of it getting damaged increases, that is why we should do software development according to the design pattern