Fun Links 2016-04-08
Using these libraries you can write an app in a declarative manner and not have to worry about state management. Not every type of application benefits from this. At the moment, I’m working on a game with reactive programming, which I think may work well. Whether or not it is always appropriate, it is a worthwhile concept to learn.
Cycle.js attempts to model your application as pure data flow using reactive programming. It isolates a
main function for your logic and provides sources (inputs from the external world) and sinks (outputs/writes to the external world). It uses provided drivers to handle the integration with things like the DOM, HTTP requests, Websockets, etc. You need to see examples to appreciate exactly how it works.
Motorcycle.js is being created by the same guy (and the group of contributors) as Cycle.js, but as the name suggests, it is designed to be faster. Under the hood, it uses Most.js instead of RxJS and a more performant virtual DOM library. It uses the same concepts of sources, sinks, and drivers.
Yolk is meant to be a minimal API on top of RxJS and virtual DOM. It treats everything as an observable; even the properties passed into its React-like UI components. If you are familiar with React and RxJS, then you will be right at home with Yolk. Yolk is what I am using for my game.