The Seven Principles of Java Design Patterns: Law Of Demeter
"Demeter's Law": This means that "the less your class knows about other classes, the better";
1. Concept:
A software entity should interact with other entities as little as possible. Each software unit has the least knowledge of other units, and is limited to those software units closely related to the uni ...
Added by ifty on Thu, 16 May 2019 13:27:42 +0300
Communication between React components
In the process of using React, it is unavoidable to need message transmission (communication) between components. There are several situations of communication between components in general:
Parent components communicate to child components
Subcomponents communicate to parent components
Communication between cross-level components
Communicatio ...
Added by cocpg on Thu, 16 May 2019 08:26:23 +0300
Cordova source learning (1) - JS calls Native
This article only reads the source code of the interaction between JS and Native. As for how Cordova develops plug-ins and so on, please refer to Cordova's official documentation: https://cordova.apache.org/docs/en/latest/
JS calls Native
Flow chart
Flow chart
analysis
index.html call The participants were
suc ...
Added by PHPSpirit on Thu, 16 May 2019 07:52:04 +0300
JAVA--Concurrent Thread Security Processing (1) --Thread Security
Knowledge about multithreaded concurrency and thread security is organized as follows:
How Threads Ensure Security
How to publish objects securely
What are the means of thread security
Explanation of JUC components
How to improve thread scheduling
1. How do threads ensure security?
What is Thread Security
This class is thread safe when mult ...
Added by maya28 on Thu, 16 May 2019 03:18:15 +0300
Exploration of the Principle of Phantom Trigger in JSBox
Preface
The ghost trigger is Zhong Ying. JSBox In the case of the app process being killed, the notification can also be fixed in the notification bar, even if the user clicks to clear, it can immediately pop up again, never disappear, unless the user closes the notification authority of App or uninstalls App, it can disappear. This function is ...
Added by tomkleijkers on Thu, 16 May 2019 02:40:21 +0300
Data structure and algorithm C++ tic-tac-toe Jingzi
Rarely today, campus activity day, school holidays, can do a good job in the near future plans but has no time to do things ~such as blogging [oblique smile]
I'm very busy recently. There are many ddl s. There will be three exams next week, and there will be English pre... next week. But I really want to record my recent learnin ...
Added by twizler on Thu, 16 May 2019 02:04:26 +0300
Java Learning Notes - Set Interface and Map Interface
Set interface and Map interface
1. Understanding the characteristics of Set sets
2. Master the Use of Common Implementation Classes under Set Sets
3. Understanding the characteristics of Map collections
4. Master the Use of Common Implementation Classes under Map Set
5. Master the traversal mode of Map set
6. Master Colle ...
Added by bluemonster on Wed, 15 May 2019 08:09:05 +0300
Implementing Picture Preview Component Based on Element UI
This is a simple click preview componentBy the way, record scope pits in vue stepped on during component writing~
Start with registering global components!
Project catalogue:
Imitate elementUI directory structure, directory name is component name, SRC is component source file (or js service file), there is also an index.js in the file director ...
Added by reddevil on Wed, 15 May 2019 05:40:54 +0300
h5 Game: WEB2048 for Different Size Screens
I. Interface Display and Brief Introduction
First completed and then different sizes of screen effects, the interface imitation of the original 2048:
(768px < screen)
(500px < screen < 768px)
(Ultra-small screen less than 500 px)
It was expected that the list of games would be on the left and the list on the ...
Added by PurpleMonkey on Wed, 15 May 2019 03:06:21 +0300
Realization Principle of Water Wave Chart
In the project, I used Canvas to realize the water wave chart, and here I will share with you the principle of its implementation. When you first see waves, you may not know where to start. Let's take a look at the characteristics of waves.
That's right. Someone will surely think of it as a sine-cosine curve. For small ...
Added by jbloom on Tue, 14 May 2019 23:56:34 +0300