Book Image

Reactive Programming with JavaScript

By : Jonathan Hayward
Book Image

Reactive Programming with JavaScript

By: Jonathan Hayward

Overview of this book

<p>Reactive programming is carried out using the building blocks of functional programming. JavaScript libraries such as ReactJS are used for front-end web development that is both competent and powerful. ReactJS is intensively being used to develop webapps for Facebook.</p> <p>This title is among the first of those addressing how everyday programmers can take advantage of reactive programming without having an extremely heavy mathematical background. It starts with the basics a front-end developer can easily connect with, while also covering the basics of functional programming. Then it goes on to explain non-functional reactive programming with the help of a live example. After that it gives a theoretical overview of reactive programming supported by functional programming. Tools to make functional programming easier like Bacon.js, a library like jQuery, are also covered. Finally, it finishes with building one small and one larger front-end project.</p>
Table of Contents (20 chapters)
Reactive Programming with JavaScript
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
9
Demonstrating Functional Reactive Programming in JavaScript with a Live Example Part II – A To-do List
Index

Built with usability in mind, but there's still room to grow


Here's a note that may address a confusing point of the code: the time units represented in an entry are not intended to represent everything that a JavaScript Date object represents, but to be maximally compatible with a JavaScript Date object. This means, in particular, that some programmer-confusing designs of the Date object are accommodated in our code because the JavaScript Date object numbers the dates of a month from 1 to 31, just like general calendar use, but months are represented from 0 (January) to 11 (December). Similarly, hours range from 0 to 23 in the Date object.

This function is a constructor in terms of what it does, but it is not designed for the new keyword, as the entire constructor and this is something that Crockford no longer includes in The Better Parts after he tried—in the wake of creating AdSafe, which forbade the use of the this keyword for security reasons—to take the medicine he was prescribing for...