News for hackers. Stuff that matters.
Re:Jquerymy.js – Purely declarative apps with complex two-wa... by gdrulia on Friday May 08, 2015 @10:15AM (#9511815)
I've used knockout.js for a few years now on multiple projects. As knockout grows, I started to dream of a library that would provide me with a two-way data binding. But not only between data object and DOM, but between data objects itself, like ko.computed does.

This seems like a nice solution, although like other commentators mentioned, the lag seems to be quite unbearable. So it might be just something towards right path and hopefully it will be maintained and updated to work more smoothly, but wont grow into full framework.

Re:Jquerymy.js – Purely declarative apps with complex two-wa... by muraiki on Friday May 08, 2015 @08:04PM (#9514831)
I use knockout.js at work and like it quite a bit. But I think that I've found what you're looking for, or something close to it, in Reactive Extensions. It's a free library available for many languages including JS. With it you can compose UI interactions, promises, and other arbitrary events in an FRP-like way using observers. An example probably explains it best: http://jsfiddle.net/nmd88wum/

If that piques your interest, check out: https://gist.github.com/staltz/868e7e9bc2a7b8c1f754

Re:Jquerymy.js – Purely declarative apps with complex two-wa... by cheapsteak on Friday May 08, 2015 @03:17PM (#9513598)
Have you looked at Vue?

http://vuejs.org/api/options.html#computed

    computed: {
      foo: function () {
        return this.a + this.b;
      },
      bar: function () {
        return this.foo + this.zot;
      }
    }