Skip to content

Simplify/remove ixml.js #46

@kadler

Description

@kadler

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_ERROR is 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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions