Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #69248

Re: meta language to define forms

References <DCD75728F460F14586086EA606E83082011A8E01E3@ACEVXCHMBX1001.ADVENTISTCORP.NET> <mailman.8653.1395975737.18130.python-list@python.org> <roy-A58360.23132127032014@news.panix.com>
Date 2014-03-28 14:30 +1100
Subject Re: meta language to define forms
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.8656.1395977445.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Fri, Mar 28, 2014 at 2:13 PM, Roy Smith <roy@panix.com> wrote:
> In article <mailman.8653.1395975737.18130.python-list@python.org>,
>  Chris Angelico <rosuav@gmail.com> wrote:
>> Rule of Python: XML is not the answer. XML is the question, and "NO!"
>> is the answer :)
>
> The nice thing about that rule is that it ports easily to so many other
> programming languages.  Except possibly Java.  Java and XML seem to be
> made for each other.

The only times I have *ever* used XML, in my whole life, were when I
needed to communicate with some other end that stipulated XML. (Most
commonly XML payload in HTTP requests and responses, eg SOAP.) In most
of those cases, some simpler structure would have sufficed; and in a
number of them, XML is simply wrong for the job.

>> Your syntax there looks reasonable already. I'd recommend you make it
>> a flat data file, though, don't try to make it a programming language
>> - unless you actively need it to be one. Here are a couple of ways you
>> could format this. Any would be fairly easy to code a parser for.
>
> My first impression here is that YAML might work here.

Good point. Add it as a fifth option!

That section was already turning into a cardinal's weaponry statement.
I said "a couple" and ended up with four... now five. :)

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: meta language to define forms Chris Angelico <rosuav@gmail.com> - 2014-03-28 14:02 +1100
  Re: meta language to define forms Roy Smith <roy@panix.com> - 2014-03-27 23:13 -0400
    Re: meta language to define forms Chris Angelico <rosuav@gmail.com> - 2014-03-28 14:30 +1100
    Re: meta language to define forms Rustom Mody <rustompmody@gmail.com> - 2014-03-27 20:44 -0700
      Re: meta language to define forms Chris Angelico <rosuav@gmail.com> - 2014-03-28 14:57 +1100
        Re: meta language to define forms Rustom Mody <rustompmody@gmail.com> - 2014-03-27 21:19 -0700

csiph-web