[wpkg-users] [Bug 186] Hit and run ideas...
bugzilla-daemon at bugzilla.wpkg.org
bugzilla-daemon at bugzilla.wpkg.org
Fri Jun 25 22:42:58 CEST 2010
http://bugzilla.wpkg.org/show_bug.cgi?id=186
--- Comment #2 from Keith Jones <k.e.jones at brighton.ac.uk> ---
Back again :-)
Sorry for just wittering on about this but there's a part of my mind saying
that some of the concepts might be useful in increasing WPKG.JS's
maintainability whilst still preserving all of its brilliant programming!
I've been persuing this idea about JSON'ifying objects for another project and
(although it's rather neat) the code above really isn't quite as useful as I
thought. I have however come up with some interesting ideas that might be
useful to WPKG.
The code attached is a really rough attempt to create a function that can
flexibly turn the XML content WPKG uses into a simple object. It uses a few
tricks and fiddly ideas but essentially it could replace a large number of the
functions like createSettings/setSettings/getSettings with a generic
object-based system.
I've based it on generating objects that use arrays to represent "collections"
and adding XML attributes as the JScript equivalnet of properties.
It's really just a "concept" so if it's of no use don't worry. It just seemed
an intriguing idea and I could see some great uses in the WPKG infra structure
:-)
take care folks!
--
Configure bugmail: http://bugzilla.wpkg.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the wpkg-users
mailing list