Basic part of C - generics
preface
In the development of programming, we often encounter functional modules with very similar functions, but the data they process is different, so we will use multiple methods to deal with different data types. But at this time, we will wonder if there is any way to use the same method to pass different types of parameters?
At this time, ...
Added by Xasho on Sun, 31 May 2020 15:26:17 +0300
Visitor mode of behavior mode
1 General
Visitor pattern is a behavior pattern, which is not commonly used. It can separate the algorithmic logic acting on the object from the object itself.
2 visitor mode
When we need to operate on a group of similar types of objects, we can maintain the operation logic within each object separately, but this violates the principle of singl ...
Added by riyaz123 on Sun, 31 May 2020 12:54:46 +0300
An interpretation of Python decorator
Copyright notice: This is the original article of Colin Cai, welcome to post. If you want to transfer, you must indicate the original website
http://www.cnblogs.com/Colin-Cai/p/12977127.html
Author: Windows
QQ / wechat: 6679072
E-mail: 6679072@qq.com
In theory, function is the first class function language, which can use function ...
Added by William on Sun, 31 May 2020 10:45:35 +0300
Talk programming - bridge mode
Bridge Pattern
Separate the abstract part from its implementation part so that they can all change independently.
motivation
When an abstraction can have multiple implementations, inheritance is usually used to coordinate them. Abstract classes define the interface of the object, while concrete subclasses are implemented in different ways. B ...
Added by Loki on Sat, 30 May 2020 18:36:09 +0300
Istio traffic hijacking process
Opening
The article about Istio traffic hijacking can be found in a very detailed article in the servicemesher community at present. You can refer to: Sidecar injection and transparent traffic hijacking in Istio . In particular, the "traffic hijacking diagram" collated by the blogger can clearly see the hijacking process. Here I use ...
Added by river001 on Fri, 29 May 2020 09:27:35 +0300
Python basic-10 loop statement
10. Loop statement
for loop statements, Python only provides while and for, not for...each/do...while/while...do, etc. like other programming languages.
10.1 while cycle
The basic format of while in Python is as follows:
while condition:
doSomething
The example code is as follows:
startNum,endNum=0,5
while ...
Added by hd_webdev on Wed, 27 May 2020 16:09:03 +0300
Consumption mode of consumer of pulsar
client processing logic
ConnectionPool
netty related configurations are available in com.yahoo.pulsar.client.impl.ConnectionPool
public ConnectionPool(final PulsarClientImpl client, EventLoopGroup eventLoopGroup) {
this.eventLoopGroup = eventLoopGroup;
this.maxConnectionsPerHosts = client.getConfiguration().getConnection ...
Added by Nothsa on Wed, 27 May 2020 14:04:46 +0300
Alibaba SMS callback. net sdk bug causes 100% troubleshooting of production service CPU
1: Background
1. Story telling
Last year, all the isv short message channels on the Jushi tower of Ali connected to Ali communication. We made a connection transformation and used the. net sdk provided by Ali.
website: https://help.aliyun.com/document_detail/114480.html
Colleagues used ons -. Net In v1.1.3, there will be a program crash a few ...
Added by youwh on Tue, 26 May 2020 14:08:29 +0300
Java Concurrent dry goods: let you understand the producer consumer problem
Source network, only for learning, if there is infringement, please contact delete.
Producer consumer model is a very classic model of multithreading concurrent cooperation. Understanding the producer consumer problem can deepen our understanding of concurrent programming.
The so-called producer consumer problem, in fact, mainly contains two ...
Added by duall on Tue, 26 May 2020 13:41:25 +0300
C ා data operation series - 16 SqlSugar conclusion
0. Preface
In the previous article, we introduced the addition, deletion, modification and query of SqlSugar in detail, which has satisfied our use in daily engineering development. However, there are a few methods that are not commonly used in development, but are very useful. Let's see what else is interesting.
1. Unusual query
Previously, we ...
Added by paullb on Tue, 26 May 2020 11:22:24 +0300