christianalfoni / observable-state

Observables for creating reactive functional state in applications
MIT License
11 stars 0 forks source link

Question: How does this compare with Knockout.js? #1

Open jakiestfu opened 9 years ago

jakiestfu commented 9 years ago

Awesome that you're doing this, mate. I'm curious as to why you did this and how it compares to other libraries like Knockout or Vue? (minus the data-binding part)

christianalfoni commented 9 years ago

Hi @jakiestfu,

Thanks for taking the time to check it out :-)

Initially I was inspired by the CycleJS project. It takes a FRP approach to building applications. I wanted to learn more about how Bacon and RxJS works, and focus on an application development API. That is why I built observable-state.

The other part to this library though is R. That is where you get the real benefit, as it supports BaconJS, RxJS and soon observable-state. It works much like React JS in giving you a view concept to inject observables and produce virtual DOM.

This is all still at some level of experimentation, but I like how "FRP" makes it easy to add immutability and pure functions.

I am not very familiar with Knockout and Vue, but I think it would be correct to say that observable-state is a pure FRP library with focus on handling application state, you data layer. Where R is a component view layer that supports FRP in the sense that it requires and returns observables :-)

Does that make sense?