On Monday 08 August 2005 00:30, Stephen Torri wrote:
> On Sun, 2005-08-07 at 23:50 +0200, Guillaume Laurent wrote:
> > That's all very nice, but just what exactly are you using this library
> > for ? What are you parsing with it ?
>
> Well when I posted to this mailing list that if a user wanted to add new
> chord files to Rosegarden that they would be creating an XML file. That
> drew the response that XML is not meant for humans to be creating. So I
> changed it so that I had a text file format, see example below, that was
> easier to read.

How about this instead :

A o222o
AMaj7 o212o

Trivial to parse (the 'AMaj7' too, we have code for that), much faster to 
write, instantly understandable by every guitar player of the face of the 
earth.

Your format is way too verbose, looks like a programming language and is, in 
fact XML in disguise. It's not any easier to write than XML, actually it's 
probably harder because of all the ';'. If it's supposed to be 
human-writable, it should be as simple as possible, and the parser should be 
as forgiving as possible, which can't be done with a format as heavily 
structured as yours.

Sorry to send you back to the drawing board again, but had you discussed the 
format here before starting to code it, we'd have pointed out the problem 
right away.

-- 
Guillaume.
http://www.telegraph-road.org


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Rosegarden-devel mailing list
Rosegarden-devel@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to