Currently, I code with #AngularJS
at work, and I looked at the most famous alternative #ReactJS
, but found it a bit over engineered.
I looked at various alternatives using the virtual Dom idea, but I came back to #Mithril
, because it is simple, high performance, and the author explains things very well... :-)
At the same time, I explored with great interest the #FRP
idea, or more exactly (for purists), the reactive programming technique but I will use FRP for short, anyway...).
The base idea here is to treat events (from user input to timer to result of Ajax queries, etc.) as streams (continuous (user) or not) and to manipulate these streams with functional methods like map, filter, reduce, zip, etc.
As I introduced #Lodash
in our project (and using it more and more extensively, nearly removing all for loops), I like the concept.
Although there are alternatives (#Bacon.js, #Kefir
, etc.) the most used FRP library in JS is #RxJS
, of the #ReactiveX
family (implemented in numerous languages, including Java), created by Netflix and managed by Microsoft.
I was looking for a way to mix Mithril and FRP, and noticed a tweet from Eric Ponto showing a CodePen example of such mix.
Even better, the author wrote a blog post explaining the ideas behind this snippet. Well done! I will experiment with that, for sure.http://www.ericponto.com/blog/2015/05/31/rxjs-and-mithril/