Re:Why I hate XML for DSLs
by patrickg on Monday February 21, 2011 @01:48AM
(#2244553)
I have created a programming language that is written in XML. With a decent editor (I use oxygen xml) and a good schema (I use Relax NG) there is almost no way to make syntax errors and typing is a breeze (auto completion). With schematron you can even make clever (semantic) error checking before compile time. So it always depends on the case.
[ Parent
| on HN ]
I don't doubt that you could write a DSL that someone would be productive with. But then you'd need to keep a psychiatrist on staff to make sure the people using it don't go crazy. If we're talking about a full on, general purpose language, then you might as well start them on Thorazine ahead of time. Otherwise, you risk a programmer going postal.
In short, don't risk your or your coworkers' safety. Just say no to XML as a programming language.
I know several people that are productive with that language without a psychiatrist.
Take for example XSLT. You are saying that all XSLT programmers are mad?
Not at all. However, if they enjoy it, I'm not convinced they're sane either.
So everyone who is not mainstream is subject to not being sane? What a strange hacker attitude...
The point I'm trying to make is that while I'm sure you could make an XML-based DSL that does its job, I don't think anyone would enjoy using it over an alternate way of implementing the language. Thus, being forced to program in it would drive them insane.
Are you sure you haven't misspelled you nick when registering? I mean, g and b are like right next to each other...
Who is patrickb? Why should I change my name?
[edit: ok, I get it! :) ]
I was trying to be funny, but failed.