Tag:aggressive behavior
-
Factory mode of deep laravel kernel
Heroes and actions, the birth of dependence First, define a hero. A hero has some behaviors: class Hero { protected $behavior = []; public function show() { var_dump($this->behavior); } } Then define an attack behavior: class Attack { protected $value = 0; public function __construct($value) { $this->value = $value; } } Transform the hero class […]
-
How to prevent malicious attacks in the industrial Internet of things?
This article is an excerpt from our latest white paper, active fraud prevention in the industrial Internet of things. 1Throughout the history of computer development, we will find that once a technology is used on a large scale, all kinds of malicious activities using standard and specification vulnerabilities will be repeated.For example, when many people […]
-
The strategic pattern of design pattern
Strategy mode The algorithm family is defined and encapsulated separately so that they can replace each other. This mode makes the algorithm change independent of the user, so that the system is not worried about any change, that is, the dynamic setting function. 1. Problem scenario Customers or users need something else or want new […]