XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] It is okay for things to break in the future!

I think analytical clarity is helpful.

If you know your schema will be long-living, you can try to organize it into ways that reflect the separation of concerns (i.e. respecting Conway's Law.)

So it is reasonable for the makers of a schema to have target capacity limitations, and for them to be part of a schema for validation.  But it is necessary for the schemas to be capable of being organized that way: to provide hooks and methods where constraints and values can be overridden.

For example, consider the UBL Code-lists. These are lists that a schema uses, but which are maintained at a different cadence to the schemas, by different folk.  That poses a maintainability issue if your schema language cannot look outside itself for data.

I don't see that changing capacity constraints over time, as the world evolves, is much of a different problem. 

The obvious way for users of XSD to deal with these things is to have a base schema with minimal constraints and maximal openness, and then regular specific schemas that extend and restrict it, which provide those evolving details like system capacity constraints.  Which treats schema evolution as a publishing problem.  (Personally, I don't think it is good enough and you still need some homemade layer on top of it, but it goes some way. )

Regards
Rick

On Mon, Sep 5, 2022 at 5:48 AM Roger L Costello <costello@mitre.org> wrote:
Hi Folks,

Sorry, I don’t agree with the posts.

Here are examples that posters gave of things that developers have failed to account for:

-       Didn’t account for London temperature rising to 40 degrees Celsius
-       Didn’t account for employees over 90 years old
-       Didn’t account for extensive use of international phone calls
-       Didn’t account for workers under 16 years of age
-       Didn’t account for last names containing a hyphen

There is a difference between:

-       Failing to understand the current world and then writing incorrect and/or incomplete code
-       Not knowing the future

My post was about the latter, not the former.

Damian actually gave an excellent example of the latter: Suppose in 1970 you created code to validate phone numbers. You could not have anticipated the arrival of mobile phones 30 years later. When mobile phones did arrive, you really want to know. You really want your validation code to fail. Whatever world view you had in 1970, it changed radically by 2000. A lot of changes will be needed in the system, validation code being one of them.

/Roger


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS