voronianski / flux-comparison

:pencil: Practical comparison of different Flux solutions
https://labs.voronianski.dev/flux-comparison/
2.79k stars 214 forks source link

Ripple Example #10

Closed pemrouz closed 9 years ago

pemrouz commented 9 years ago

Would be nice have a comparison example for Ripple too, can send a PR if you want.

Ripple is an extension to the Flux paradigm (closer to the new Relay in scope):

Ripple vs Flux

Ripple shares key architectural concepts with Flux, such as the single dispatcher, data-flow programming (unidirectional), and views updating when the associated data changes, etc. However, Ripple is an extension to the Flux paradigm, in that the dispatcher will not update only the data/views on the current page, but on all other clients too. Ripple introduces much less proprietary concepts (everything is a resource) and the API aims to embrace standards rather than invent new ones.

https://github.com/pemrouz/ripple

See also the React quick example to get started: https://github.com/pemrouz/ripple-examples

voronianski commented 9 years ago

@pemrouz hey, thanks for suggest! I'll be glad to see PR with such example in this repo as well.

pemrouz commented 9 years ago

@voronianski: See https://github.com/voronianski/flux-comparison/pull/22. I kept this as a server-less implementation like the rest, but obviously the power with Ripple is having changes ripple across the network to all connected servers/clients.

React doesn't play well with Web Components, so I left it out. But you could easily require the common JSX files, add a wrapper div, then render into that, like this.

voronianski commented 9 years ago

@pemrouz in order to keep better structure of the repo non-flux examples are no longer accepted.

pemrouz commented 9 years ago

What's a "flux example" exactly?