Tag:Pattern

  • Design mode observer mode

    Time:2020-4-6

    concept The observer pattern (also known as publish / subscribe pattern) is a kind of behavioral pattern. It defines a one to many dependency, which allows multiple observer objects to listen to a subject object at the same time. When the subject object changes state, all observer objects will be notified so that they can […]

  • Learning notes of design pattern: (19) strategic pattern

    Time:2020-4-4

    This note is excerpted from: https://www.cnblogs.com/patrick liu/p/8057654.html. Record the learning process for future reference.     I. Introduction Today we are going to talk about the seventh pattern of behavioral design pattern — strategic pattern. In real life, examples of strategic patterns are also very common. For example, in a company, there will be a variety […]

  • Linux introduction series 15: vsftp service for file transfer

    Time:2020-4-3

    The previous series of articles basically finished the basic knowledge related to Linux management. Starting from this article, I will explain the deployment and configuration of the service program in CentOS 7, so as to provide various services for the external. In daily work and entertainment, all kinds of resources we need are inseparable from […]

  • Learning notes of design mode: (20) responsibility chain mode

    Time:2020-4-3

    This note is excerpted from: https://www.cnblogs.com/patrick liu/p/8109100.html. Record the learning process for future reference.     I. Introduction Today we are going to talk about the eighth pattern of behavioral design pattern — responsibility chain pattern. Let’s look at an example of a company’s purchasing process in real life. It may be easier to understand. Rules […]

  • Handwritten react router DOM

    Time:2020-4-2

    Functions to be implemented Routing mode:hash,browser Components:HashRouter,BrowserRouter,Route,Switch,Redirect,Link Current route information: Pathpathname, parametersquery Route jump:push,replace,go,goBack How to use react router DOM //Routing configuration import React from ‘react’ // react-router-dom import { HashRouter as Router, Route, Redirect, Switch } from ‘react-router-dom’ //Handwritten react router DOM // import { HashRouter as Router, Route, Redirect, Switch } from ‘@/plugins/my-router-dom’ […]

  • [technical translation] write asynchronous tasks in modern JavaScript

    Time:2020-4-2

    This week, we will translate some technical articles. This time, we expect to translate three articles as follows: Generate static websites with nuxt How web content can affect power usage Write asynchronous tasks in modern JavaScript (https://web.dev/off-main-thread/) All my translated technical articles are put in a GitHub warehouse. If you find it useful, please click […]

  • Objective-C design pattern analysis – command

    Time:2020-4-1

    Pattern of picture reading Premise & scenario We have several legions. The Legion has several functions: 1. Attacking the target on land; 2. Bombing the target; 3. Protecting the target; 4. Retreating from the target, etc.The general can give orders to the Legion and use its functions. demand In a battle, the general masterminded and […]

  • Hadoop (2) HelloWorld of Hadoop (installation and use in stand-alone mode)

    Time:2020-4-1

    This article has been synchronized to liaosi’s blog Hadoop (2) Hadoop’s HelloWorld (installation and use in stand-alone mode) The VMware virtual machine used in this article is CentOS 7 ﹐ 64 bit for Linux system, Hadoop 2.8.2 for Hadoop, JDK 1.8 for JDK. The account used is the created Hadoop account (refer to Hadoop (I) […]

  • Learning notes of design pattern: (21) visitor pattern

    Time:2020-3-30

    This note is excerpted from: https://www.cnblogs.com/patrick liu/p/8135083.html. Record the learning process for future reference.     I. Introduction Today we are going to talk about the ninth pattern of behavioral design pattern — visitor pattern. According to the old rules, if I look at the pattern by name, I can’t get any information useful for understanding […]

  • Editor debate

    Time:2020-3-29

    The editor is the most frequent of the tools that mcnon deals with every day. Here are a few editors I have used. vim In this world, there is a story about these two artifacts: Emacs is said to be the editor of God, and VIM is the God of editor. We can see the […]

  • Vue cli environment construction document

    Time:2020-3-29

    Vue cli environment construction document 1. Install node.js Download address https://nodejs.org/zh-cn/download/ 2. Global installation of Vue cli Press Win + R to open the run CMD window and enter the following code. Due to the speed of NPM official image access network, we choose to use Taobao’s image source npm config set registry https://registry.npm.taobao.org npm […]

  • Learning notes of design mode: (22) memo mode

    Time:2020-3-29

    This note is excerpted from: https://www.cnblogs.com/patrick liu/p/8176974.html. Record the learning process for future reference.     I. Introduction Today we are going to talk about the 10th mode of behavioral design mode — memo mode. First, let’s look at the name. Memo mode can be understood as saving the state of an object until it needs […]