Live data from Hacker News

Jquerymy.js – Purely declarative apps with complex two-way data-binding

jquerymy.com

21–27 of 27 posts

Re: Jquerymy.js – Purely declarative apps with complex two-way data-binding

#21
post #18

What's the advantage of using this over something like angular.js?

This seems like it would be more lightweight flexible than something like angular. With angular you have to do everything with data attributes (which is fine for a lot of use cases) but this can be done in all js with "normal" HTML.

Re: Jquerymy.js – Purely declarative apps with complex two-way data-binding

#22
post #18

What's the advantage of using this over something like angular.js?

You can not use one Angular app inside other without side effects and tuning. So Angular app in general can not be a control (like input or select) for another app.

$.my apps behave like complex controls – you can enclose one $.my app into other, you even can make this enclosure recursive (for example http://cloudwall.me/etc/json-editor.html).

Also since $.my manifests are JSON docs, you can combine them just attaching one manifest as a property of another manifest – so app of nearly any complexity can exist as a single JSON.

Re: Jquerymy.js – Purely declarative apps with complex two-way data-binding

#23
post #8

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 rig…

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;
      }
    }

Re: Jquerymy.js – Purely declarative apps with complex two-way data-binding

#24
My two questions for all JavaScript libraries as an enterprise LoB dev are:

(1) What browser versions are supported? (Translation: are you willing to do/accept help with the work to support business users?)

Edit: answered at the bottom, IE9+

(2) How well is deep nesting supported? (Translation: can my parent-child-grandchild-greatgrandchild piles of data entry forms use this?)

Thanks for the time invested in creating this library and the associated documentation!

Re: Jquerymy.js – Purely declarative apps with complex two-way data-binding

#25
post #24

My two questions for all JavaScript libraries as an enterprise LoB dev are: (1) What browser versions are supported? (Translation: are you willing to do/accept help with the work to support business users?) Edit: answered at the bottom, IE9+ (2) How well is deep nesting supported? (Translation: can my parent-child-grandchild-greatgrandchild piles of data entry forms use this?) Thanks for the time invested in creating…

1) In fact, versions up to 1.0 supported IE8. Think current version also support, although it was not tested in IE8. To mention – $.my is heavily and primarily used in biz environment for very complex backends.

2) Forms can even be recursive. http://cloudwall.me/etc/json-editor.html – you can check youself how deep source json and associated forms can go and find out when it will stall )

Re: Jquerymy.js – Purely declarative apps with complex two-way data-binding

#26
post #8

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 rig…

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-way data-binding

#27

I find the description of this confusing. I feel like there's a number of people who talk about programming in a way that I'm not familiar with. Where do people learn verbiage like this? Is it popular among some universities? Is there something beyond code complete and gof? For example, I've never gotten a good handle on what other people see as declarative. I know the definition and I know my interpretation - but ot…

I really liked your comment, but I'm still curious about what is your definition of "declarative".
Post reply on HN