[C++11] improve our design pattern -- observer pattern
Observer Pattern mainly solves that when there is a one to many relationship between objects, when an object is modified, it will automatically notify other objects that depend on it. In the design pattern, the Observer Pattern belongs to the behavior pattern.1 Classic observer modeIn books related to design patterns, the following figure is mo ...
Posted by manchuwok on Mon, 15 Nov 2021 23:32:56 -0800
cfadmin - write high-performance server and client instances
Reading this article requires readers to have at least a basic knowledge of C/C + + network programming and how to use the basic Socket API
At the same time, readers should have at least used cfadmin framework and be proficient in using built-in library to complete simple business logic writing
Students interested in this article can also Off ...
Posted by hash1 on Fri, 12 Nov 2021 20:29:31 -0800
Day_15 [java basics] abstract classes, interfaces and internal classes
1, abstract class
When defining a class, it is often necessary to define some methods to describe the behavior characteristics of the class, but sometimes the implementation of these methods is uncertain. For example, if an Employee class is defined, its work() method describes work, but their work is different for different positions. For thi ...
Posted by enlight on Fri, 12 Nov 2021 20:17:18 -0800
04 - system built-in interceptor usage & custom interceptor
Use of system built-in interceptor
During Flume operation, Flume has the ability to modify / delete events during the operation phase, which is realized through interceptors. The interceptors have the following characteristics:
The interceptor needs to implement the org.apache.flume.interceptor.Interceptor interface.The interceptor can modify ...
Posted by odtaa on Fri, 12 Nov 2021 20:08:28 -0800
C + + learning notes - deep copy and shallow copy
Note: the coding tool is CLion+Cygwin64
catalogue
copy constructor
assignment
Function return object
Object is passed as a function parameter
Shallow copy
Deep copy
copy constructor
ย ย ย ย When C + + assigns a value to an object reference, returns an object from a function, or passes an object as a function p ...
Posted by rajivgonsalves on Fri, 12 Nov 2021 19:50:48 -0800
Web front end final assignment - Web Design of responsive art training institutions (bootstrap+HTML+CSS+JavaScript +)
๐
Author home page: Li Yangyong ย
๐
Introduction: high quality creator in Java field ๐, [Li Yangyong] author of public account โ ย Resume template, learning materials, interview question bank, technical assistance [pay attention to me and give it to you]
๐
ย Get the source code at the end of the article ย ๐
...
Posted by eagleweb on Fri, 12 Nov 2021 19:18:21 -0800
Hash table: General hash, string hash (with examples)
storage structure
1. Open addressing method (y general recommendation) The principle of open addressing method is similar to going to the toilet 2. Zipper method Similar to adjacency table
String hash mode
p-ary 1. Treat the string as a p-ary number 2. Convert the number in p-ary to the number in 10-ary 3. For the whole number modQ In this ...
Posted by ChibiGuy on Fri, 12 Nov 2021 19:15:23 -0800
Teach you to write a React state management library
Since the implementation of React Hooks, Redux is out of place as a state management scheme. Dan Abramov mentioned "You might not need Redux" a long time ago. Developers must write a lot of "pattern code". Cumbersome and repetition are not tolerated by developers. In addition to the fact that the concepts such as actions/red ...
Posted by admin101 on Fri, 12 Nov 2021 19:03:17 -0800
Understand the common configuration notes of Mybatis - Advanced
to configure
3.1. Core configuration file
The MyBatis configuration file contains settings and attribute information that deeply affect MyBatis behavior. The top-level structure of the configuration document is as follows:
configuration
properties settings typeAliases typeHandlers objectFactory (object factory) plugins environment ...
Posted by Rohan Hill on Fri, 12 Nov 2021 18:18:23 -0800
Java IO stream --- byte stream
IO stream
1, IO stream overview and classification
IO stream introduction
IO: input / outputStream: it is an abstract concept, which is the general name of data transmission. In other words, the transmission of data between devices is called stream, and the essence of stream is data transmissionIO stream is used to deal with data transmissio ...
Posted by SammyGunnz on Fri, 12 Nov 2021 17:18:42 -0800