QA Official

Design Pattern-Mediator Pattern 2019-05-01
Mediator mode, communication between objects, if it is one-to-one very simple, object A tells object B what to do, and B does what it wants, but if it is not one-to-one communication?The structure in the middle will be a lot of confusion. When one object changes, other objects may need to change together, which leads to the mediator model. Encapsulates a series of object interactions with an intermediary object. The

Design Pattern-Object Behavioral pattern 2019-05-01
[Object Behavioral pattern] refers to algorithms and assignment of responsibilities among objects, describing the modes of objects and classes, and the communication modes between them.Used to describe how classes or objects interact and how responsibilities are assigned. 1. Strategy refers to defining a series of algorithms, encapsulating them one by one and making them replaceable.There is a base class policy interface, and multiple policies inherit from the base class;The upper

Difference between Soft Decoding and Hard Decoding of Video 2019-05-01
For video transmission, the understanding of decoding should be basic.So what is soft decoding and what is hard decoding?What is the difference between them?Is it just the difference between proper nouns?In fact, the difference between them is obvious. Distinguishing Point The video files we play on the computer are all compressed, because this is conducive to saving storage space;Then in the playing process, a reflection decompression process is required.

Experience of Using pureMVC 2019-05-01
PureMVC greatly optimized our use of FLEX for foreground development, making the whole development process more controllable. However, if programmers are allowed to use pureMVC freely, there will be great hidden dangers.The content of this article mainly records some development specifications and experience summary that I have used in the past week when I used pureMVC to develop prototypes. 1. If there is a project developed jointly by several developers, and version control tools are used to control the source code of the project, it can be easily maintained.

Face Color Score Using Machine Learning 2019-05-01
Science can make fairy tales come true. Do you remember the magic mirror in Snow White? Using human technology can really make ordinary people have one.Because humans let computers use machine learning to make their own judgments. The common step of using machine learning is to let the machine learn first and then let the machine work. How to learn how to score a face, you must give the computer a pile of photos, tell it what is the score of each photo, after the computer has finished learning, give it a photo it has never seen, let it score, and see if it is good at learning.

Installation and Configuration of ZooKeeper Cluster 2019-05-01
Zookeeper aims to encapsulate complex and error-prone key services and provide users with simple and easy-to-use interfaces and systems with high performance and stable functions.Zookeeper has two modes of operation, Standalone mode and Distributed mode. However, Zookeeper has the advantage of being able to build a distributed Zookeeper cluster (one Leader, multiple Follower), thus ensuring high availability, high stability and high reliability of the cluster. standalone mode of ZooKeeper After downloading the installation package, use Winscp to put it into Linux environment, and then decompress the installation package:

Mediator Model Learning and Thinking 2019-05-01
1. Concept: Mediator Mode is to encapsulate a series of object interactions with a mediation object. Mediators make the objects not need to refer to each other explicitly, thus making their coupling loose and changing their interactions independently. It can be seen that the intermediary mainly encapsulates the relationship between objects through intermediary objects so that each object can communicate with other objects through intermediary objects without knowing the specific information of other objects.

Mediator Pattern (java Implementation) 2019-05-01
Mediator Mode World Needs Peace Due to the different interests represented by different countries, contradictions and conflicts are inevitable. The United Nations organization is composed of representatives of various countries and is used to maintain international peace and security. It is the role of a mediator and intermediary. The relationship between countries is just like the relationship between different objects, which requires that all other objects need to be known among objects.

Mediator Pattern of Java Design Pattern 2019-05-01
Introduction Mediator pattern is a behavioral design pattern, which is an effective way to reduce the coupling degree between classes.It is generally used when there is a close connection between multiple classes.First let's look at its definition: Define an object that encapsulates how a set of objects interact. Mediator promotes loose coupling by keeping objects from referring to each other explicitly, and it lets you vary their interaction independently.A series

Mediator Pattern. 2019-05-01
Definition: Encapsulates a series of object interactions with a mediation object. Mediators make the objects interact without display, thus making their coupling loose and changing their interactions independently. Mediator mode consists of the following parts: Mediator abstract mediator role abstract mediator roles define a unified interface for communication between colleague roles. Concrete Mediator Specific Mediator Role The specific mediator role realizes cooperative behavior by coordinating each colleague role, so it