Hi everyone,

some of us at Wikidata[1] are currently thinking about the best
approach to improve the connection between our backend (web API) and
our JavaScript front-end. What we basically want is to make our data
model available in the front-end in a broader span. This will allow us
to go for more decoupled components (model/viewer) but hopefully it
will also allow gadget developers to fetch, handle, present and store
data with much less effort.

Since there might be some existing JavaScript frameworks well suited
for this already, it might be worth considering them for the job.
Backbone, Spine, Knockout, Serenade or Ember are just a few names out
of many.
Has there been any discussion touching this area so far or is this
even used in some wip MediaWiki project? I could for example imagine
the Visual Editor requiring some kind of approach going this
direction... anything?
I think this is similar to the decision to ship MW together with
jQuery instead of a similar library. So I guess if we would choose any
of these frameworks, it should be a lightweight one, allowing for
great flexibility to reuse this in MW extensions and core, not having
to introduce another one later which would just mean more confusion
for new developers and additional load between clients and servers.

In Wikidata, the first thing we would use any of those frameworks
would be to provide Wikidata Items[2] (or other entities) by fetching
them via the web-API, allowing modification to those fetched objects
and then storing all changes made back to the server via the web-API.
Also see my draft[3] with the idea of introducing a JS prototype for
Entity/Item as well as FetchedEntity/Item which could probably be
implemented using one of those frameworks.

This discussion should be both, talking about experience with such
frameworks as well as dealing with the question whether it would make
sense to introduce something of this art into core in the near future
or not.
Any thoughts on this would be highly appreciated!

Cheers,
Daniel W.

--
Daniel Werner
Software Engineer

Wikimedia Deutschland e.V. | Obentrautstr. 72 | 10963 Berlin
Tel. (030) 219 158 26-0

http://wikimedia.de

Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e.V.
Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg
unter der Nummer 23855 B. Als gemeinnützig anerkannt durch das
Finanzamt für Körperschaften I Berlin, Steuernummer 27/681/51985.

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to