-
Notifications
You must be signed in to change notification settings - Fork 39
Closed
Milestone
Description
ixml.js includes various definitions for XMLSERVICE tags and attributes. This is way overly complicated and over-engineered.
For instance, I_XML_ATTR_KEY_ERROR is defined to the string "error". Having definitions like this can be useful, however:
- this string will never change as it would break compatibility
- "error" is in the key name, so you already have to know what you're looking for
I_XML_ATTR_KEY_ERRORis longer and more complicated to type (caps, underscores)
This abstraction brings no benefits whatsoever, while imposing extra mental effort to understand and parse the abstraction.
A better model would be to use Javascript template literals or possibly a template engine (though this might be overkill as well).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels