Erlang Mailing Lists

Author Message

<  Yaws mailing list  ~  yaws 2.0 - XML config file format ?

Guest
Posted: Sun Feb 25, 2007 7:44 am Reply with quote
Guest
I'm extremely underwhelmed with Apache style configuration files that appear to be loosely based on XML but quite clearly are not valid XML.
Guest
Posted: Sun Feb 25, 2007 1:31 pm Reply with quote
Guest
julian@precisium.com wrote:
> I'm extremely underwhelmed with Apache style configuration files that
> appear to be loosely based on XML but quite clearly are not valid XML.
>

I completely agree, config file should be proper XML


-klacke

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
DELETED
Posted: Wed Apr 11, 2007 3:09 pm Reply with quote
Guest
DELETED
Guest
Posted: Tue Apr 24, 2007 6:25 am Reply with quote
Guest
Claes Wikstrom <klacke@tail-f.com> wrote:
> julian@precisium.com wrote:
>> I'm extremely underwhelmed with Apache style configuration files that
>> appear to be loosely based on XML but quite clearly are not valid XML.
>
> I completely agree, config file should be proper XML

I disagree, unless the config file is written by a tool. In the
Unix world most config files are edited with a text editor. XML
is messy.

Reading XML is OK when you want to debug some XML based protocol,
but for config files it's a bad choice.


ejabberd uses Erlang terms, which is also a bad choice, because
the target groups aren't Erlang programmers. For yaws this could
be OK. Or maybe something like the INI files from the Windows
world.


--
Web (en): http://www.no-spoon.de/ -*- Web (de): http://www.frell.de/


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
Guest
Posted: Tue Apr 24, 2007 7:01 am Reply with quote
Guest
Stefan Scholl wrote:
> Claes Wikstrom <klacke@tail-f.com> wrote:
>> julian@precisium.com wrote:
>>> I'm extremely underwhelmed with Apache style configuration files that
>>> appear to be loosely based on XML but quite clearly are not valid XML.
>> I completely agree, config file should be proper XML
>
> I disagree, unless the config file is written by a tool. In the
> Unix world most config files are edited with a text editor. XML
> is messy.

And I've changed my mind. Maybe the current '<' '>' syntax is
ugly, but making it proper XML doesn't make it less ugly.
Anyway, as I said, I've changed my mind.

There are no right answers here - just opinions.

/klacke

--
Claes Wikstrom -- Caps lock is nowhere and
http://www.tail-f.com -- everything is under control
cellphone: +46 70 2097763

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
joneksi
Posted: Tue Apr 24, 2007 7:17 am Reply with quote
User Joined: 27 Feb 2005 Posts: 20 Location: Helsinki, Finland
How about a small config file validator/filter application, that can
read, write and convert different config formats. I would prefer to edit
unix style config file personally, but getting the config syntax correct
before really launching the application would be nice. If XML style
definitions are needed, the tool good spit it out. And vice versa.

AND it could also spit out a nice HTML sheet, defining the current
configuration, maybe even a form for those without a text editor ... or
a template for gnome config or ... whatever makes each distribution
happy.

Jouni

On Tue, 2007-04-24 at 09:01 +0200, Claes Wikstr
View user's profile Send private message
Guest
Posted: Tue Apr 24, 2007 11:47 am Reply with quote
Guest
On 24-Apr-07, at 3:24 AM, Stefan Scholl wrote:

> Claes Wikstrom <klacke@tail-f.com> wrote:
>> julian@precisium.com wrote:
>>> I'm extremely underwhelmed with Apache style configuration files
>>> that
>>> appear to be loosely based on XML but quite clearly are not valid
>>> XML.
>>
>> I completely agree, config file should be proper XML
>
> I disagree, unless the config file is written by a tool. In the
> Unix world most config files are edited with a text editor. XML
> is messy.
>
> Reading XML is OK when you want to debug some XML based protocol,
> but for config files it's a bad choice.

Agree, if said files are to be written by humans.

>
>
> ejabberd uses Erlang terms, which is also a bad choice, because
> the target groups aren't Erlang programmers. For yaws this could
> be OK. Or maybe something like the INI files from the Windows
> world.

Apache's syntax is already far more expressive than INI.

--Toby

>
>
> --
> Web (en): http://www.no-spoon.de/ -*- Web (de): http://www.frell.de/
>
>
> ----------------------------------------------------------------------
> ---
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Erlyaws-list mailing list
> Erlyaws-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/erlyaws-list


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
Guest
Posted: Thu Apr 26, 2007 6:56 am Reply with quote
Guest
What about YAML?

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
Guest
Posted: Thu Apr 26, 2007 8:57 am Reply with quote
Guest
That's a pretty bad idea. Writing a YAML parser is non-trivial, and
the syntax isn't really good enough to bother with all of that hassle.
It really only has measurable traction in the Ruby and Perl
communities.

Really, how many Yaws users do all of their configuration in text
files anyway? I would imagine most people using Yaws are probably
doing it with an embedded style of application.

On 4/25/07, Ben Hood <0x6e6562@gmail.com> wrote:
> What about YAML?
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Erlyaws-list mailing list
> Erlyaws-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/erlyaws-list
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum