View Single Post
  #25   Spotlight this post!  
Unread 13-06-2010, 22:12
StevenB StevenB is offline
is having FRC withdrawal symptoms.
AKA: Steven Bell
no team
Team Role: College Student
 
Join Date: May 2005
Rookie Year: 2005
Location: Stanford, CA
Posts: 416
StevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond reputeStevenB has a reputation beyond repute
Re: Using A Scripting Language To Script Robot Behaviour

Quote:
Originally Posted by Foster View Post
I don't know apalrd, have no idea where apalrd is, etc, etc. Apalrd, humans do not write in XML. Humans should NEVER write any form of a language that looks like XML.
A language like... HTML? The "language" that the entire web is built on - much of it by hand, or at least with major human interaction?

I'll be the first to agree that the Unix/Linux config file style that you describe is a more human-readable format. Comments are simple (typically a # sign), the options are clear, and the layout is simple. However, XML has a lot of things going for it:
- Parsers are freely available (Xerces, expat, Java's JAXP, and others)
- XML can be validated against a schema to ensure that only valid configurations are specified. Yes, you can do this with a custom parser too, but schema validation is already done and is pretty easy to implement.
- It is human-readable, even if not perfectly so. And there are a lot of good tools to help (Eclipse's XML editor seems pretty cool, although I don't know enough to give an expert opinion on it).
__________________
Need a physics refresher? Want to know if that motor is big enough for your arm? A FIRST Encounter with Physics

2005-2007: Student | Team #1519, Mechanical Mayhem | Milford, NH
2008-2011: Mentor | Team #2359, RoboLobos | Edmond, OK
2014-??: Mentor | Looking for a team...