Functional programming and reactive programming

Reference article

Functional programming and reactive programming of their views _Java_Tycho's Blog-CSDN blog

RxJava Series 1 (Introduction) - know almost

1, function programming from the perspective of the encoding is achieved, i.e., to achieve a function in mathematics (function) in the concept of a programming language method (method). Mathematical concept exists in a function input and an output, the input of the calculation to obtain a certain output, thereby forming a one to one relationship. So let directly into the method has a parameter and a return value is not satisfied yet? This does, but only one relationship formed in one mode, this mode is the only defined method specified by the internal logic. When the mapping relationship needs to be built in another mode, it is necessary to re-create a new method. When most of the correspondence mode only a small part of the logic is not the same, we need to consider multiplexing method, which specifies the corresponding pattern common to only part of the definition of the method, a small part of a different logic when you call the method as a parameter. Mathematical functions to achieve real-time dynamic one correspondence mode by the method of defining and coding levels to determine the call. Of course, a small part of the logic required for dynamically determined, it can be explicitly specified when invoked by the process at the time of encoding, it may be passed as an object to different situations during operation.

2, in response to programming from the point of view of operating results. The results of the program run in the presence of at least two ends, and these ends, at least one end can be changed can cause changes in the other end, can also cause variations between the ends of each other. Typically achieved by implementing the observer mode level, and to transmit, receive and process procedure.

Guess you like

Origin www.cnblogs.com/StarkBrothers/p/12329475.html