官术网_书友最值得收藏!

Functional reactive programming

Every programming language or technical domain has some kind of pictorial representation to explain certain concepts and make things easier to translate in logical pictorial representations. Similarly, we can express certain reactive concepts in logical pictorial representations. In this book, you will see the use of diagrams to represent functional and reactive concepts and hence it becomes important to have a basic understanding of these diagrams and how you can read them to understand the programming concept they want to showcase. In subsequent sections, we will give a brief introduction to the different types of Logical diagrams. You will get to learn more about concepts like state, side effects, signals, events, and so on in the later half of the chapter. Understanding these concepts is very important because these concepts form smaller elements of the bigger puzzle.

Programming as a whole is event driven most of the time and often, even the best code produces unwanted sequences of events that are unaccounted for; however, a developer should handle them as gracefully as possible. These unwanted or unexpected events are called exceptions and as soon as an exception springs up, the flow of code should digress a little from the normal flow in order to handle the exception so that the state of the app is maintained. It is like a train journey—you board a train and the train starts running on the track and in case there is some kind of congestion on the track, the train switches track to smoothly complete the journey. In programming concepts, this method of programming is called Railway-oriented programming. At the end, we will discuss the concept of railway-oriented programming and how this concept segregates exception flows from normal execution.

主站蜘蛛池模板: 鸡东县| 台北市| 思茅市| 平凉市| 陇南市| 紫阳县| 宣威市| 双峰县| 太康县| 鄂托克旗| 兴和县| 西昌市| 栾川县| 太湖县| 宽甸| 剑河县| 咸阳市| 永济市| 图片| 财经| 靖西县| 九台市| 舟曲县| 桐乡市| 通道| 梅州市| 龙游县| 乐昌市| 景洪市| 敦化市| 海城市| 湖南省| 万源市| 察哈| 沙河市| 交城县| 平远县| 武功县| 三都| 西峡县| 邻水|