PlantUML Quick Start UML Time Series Diagram
UML Sequence Diagram
Sequence diagrams are the most commonly used UML diagrams after class diagrams. Sequence diagrams represent interactions as a two-dimensional graph with the time axis vertically and the time going down vertically. The horizontal axis represents the roles in collaboration and is generally a Class.Objects, with a dashed line ...
Posted by zrueda on Tue, 12 Oct 2021 10:08:11 -0700
Design pattern 5: create prototype pattern
Create pattern: prototype pattern
Prototype mode
1. Prototype mode: Introduction
Prototype mode
Solution: create duplicate objects.The object content itself is complex, and it takes a long time to obtain relevant object data from the database or RPC interface. Therefore, replication is needed to save time.
2. Prototype mode: simulat ...
Posted by macje on Mon, 11 Oct 2021 17:03:55 -0700
Design mode 4: creation builder mode
Creative mode: Builder mode
Builder pattern
1. Builder mode: Introduction
Builder pattern
The core purpose is to build a complex object step by step by using multiple simple objects.The final intention of the builder's model is to produce specific contents according to the same materials and different assembly methodsThat is, a comp ...
Posted by -entropyman on Sun, 10 Oct 2021 19:30:51 -0700
Design pattern, detailed explanation of responsibility chain pattern, c + + implementation
Detailed explanation of responsibility chain mode, c + + implementation
Responsibility chain model Definition: multiple objects have the opportunity to process the request, avoid the coupling relationship between the sender and receiver of the request, connect the processing objects into a chain, and pass the request along the chain until an o ...
Posted by yorktown on Sat, 09 Oct 2021 21:26:48 -0700
[title song] Linux from introduction to mastery (October 9, 2021)
https://www.educoder.net/paths/43
Level 1: Linux initial experience
#!/bin/bash
#Write the command to complete the task in the following section
#*********begin*********#
cd /
ls -a
#********* end *********#
Level 2: common Linux commands
#!/bin/bash
#Write the command to complete the task in the following section
#*********begin*********# ...
Posted by slipperyfish on Sat, 09 Oct 2021 12:11:29 -0700
Strategic mode of design mode
definition
In Strategy Pattern, the behavior of a class or its algorithm can be changed at run time. This type of design pattern belongs to behavioral pattern.
In the policy pattern, we create objects representing various policies and a context object whose behavior changes with the change of policy objects. The policy object changes the exec ...
Posted by rotarypot on Thu, 07 Oct 2021 02:02:01 -0700
Design pattern note 5 - prototype pattern
5. Prototype mode
Prototype pattern refers to specifying the type of objects to be created with prototype instances, and creating new objects by copying these prototypes
Prototype pattern is a creative design pattern that allows an object to ...
Posted by mzshah on Thu, 07 Oct 2021 00:37:59 -0700
Design pattern - prototype pattern
definition
Using an instance that has been created as a prototype, create a new object that is the same as the prototype object by copying the prototype object.
Role and class diagram of pattern
The prototype pattern contains the following roles:
Abstract prototype class: Specifies the clone() method that the concrete prototype object m ...
Posted by katie77 on Wed, 06 Oct 2021 18:08:28 -0700
Java singleton pattern
Java singleton pattern
Single case introduction
Singleton Pattern is one of the simplest design patterns in Java. This type of design pattern is a creation pattern, which provides the best way to create objects.
This pattern involves a single class that is responsible for creating its own objects while ensuring that only a single object is c ...
Posted by RGBlackmore on Wed, 06 Oct 2021 16:06:25 -0700
Proxy mode (proxy)
1, What is the proxy model
Proxy mode: provides an avatar for an object to control access to the object. That is, through the agent Object to access the target object
Advantages: Based on the realization of the target object, additional function operations can be enhanced, that is, the function of the target object can be extended.
The proxi ...
Posted by SureFire on Wed, 06 Oct 2021 10:01:21 -0700