…why the UML camp puts so much emphasis on UML relative to MOF and XMI, which I've always found much more compelling.
Between Stefan's blog post and a late night email exchange, Stefan helped me see a few things far more clearly.
Having a common basis for defining arbitrary languages/vocabularies is good architectural hygiene, as it (potentially) allows multiple DSLs to benefit from a common tooling (and storage and query and…) platform. This part I already figured out ages ago, and is why I didn't get the lack of energy behind MOF.
Having a common basis for defining arbitrary languages/vocabularies does not excuse you from producing DSL-specific editors or other tooling.
What's interesting is that I already groked #2 vividly, but not from the MOF/UML angle.
I was a big early supporter of our new XML editor in VS. The XML team has been doing some great work building a general purpose XML-aware text editor that does validation, intellisense, snippets, schema inferencing, the works.
I can use that editor to edit any XML dialect and if I have an XSD or DTD for that dialect, I get an amazingly good textual experience.
But what if I want to edit a lot of XHTML? Or better yet, WordML?
To edit XHTML, I typically use InfoPath (in fact, I'm using it right now), as I get familiar formatting commands and a WYSIWYG editing experience.
To edit WordML, I use winword.exe.
Could I use the new VS XML Editor to edit XHTML and WordML? Absolutely.
Would I want to? Absolutely not.
I pick the DSL-specific editor every time.
So why is it important then for WordML and XHTML to be XML based?
Not because I can edit in a general purpose XML (or even raw text) editor, although that's a nice benefit (especially when you want your Group VP to edit some XAML in VI).
Rather, it's important because I can use a common toolset to parse, manipulate, query, transform, store, and transmit XHTML and WordML without getting too bogged down in mundane format details.
I've had these intuitions about the role of XML for a very long time now.
Thanks to Stefan, I now see how these intuitions apply in the DSL/modeling world.
And thanks to Steve Cook who (post facto) sent me
this nice paper that had already come to similar conclusions. I'll admit it was more fun having Stefan drag me to the well…
Posted
Jan 06 2005, 03:53 AM
by
don-box