Hi, Wy there is so many ugly constructions in FS configuration files? For example configuration of a gateway looks like this: <include> <gateway name="asterlink.com"> <param name="username" value="cluecon"/> <param name="realm" value="asterlink.com"/> <param name="from-user" value="cluecon"/> ... This is not good structure design. I know that it gives extreme flexibility for developers, but config files are for admins not software developers. IMHO it should look like this: <include> <gateway name="asterlink.com"> <username>cluecon</username/> <realm>asterlink.com</realm/> <from-user>cluecon</from-user/> ... Such structure + schema file would be a great help in configuration editing (autocompletion and syntax check). greetings, Seweryn
Hehe, you just stepped on a land mine! There was A LOT of discussion about this. The simple fact of the matter is that there was no way to make everyone happy so the devs chose a layout that might be "ugly" to some. The key is that XML isn't really "pretty" anyway. The point of XML is that it needs to be machine readable AND human readable. Since humans are (usually) smarter than machines it was decided that machine readable is more important. Besides, when all of the GUIs get built you won't be hacking XML very much - if at all. I promise you this: even if you think something is weird or curious about how FreeSWITCH works there is ALWAYS a good reason for the design decisions. Always. Nothing in FS was left to chance or caprice. -MC PS - this was probably a better topic for the -dev list. :) Sent from my iPhone On Dec 23, 2008, at 6:20 AM, Seweryn Niemiec <ser@man.szczecin.pl> wrote:
Hi,
Wy there is so many ugly constructions in FS configuration files? For example configuration of a gateway looks like this:
<include> <gateway name="asterlink.com"> <param name="username" value="cluecon"/> <param name="realm" value="asterlink.com"/> <param name="from-user" value="cluecon"/> ...
This is not good structure design. I know that it gives extreme flexibility for developers, but config files are for admins not software developers. IMHO it should look like this:
<include> <gateway name="asterlink.com"> <username>cluecon</username/> <realm>asterlink.com</realm/> <from-user>cluecon</from-user/> ...
Such structure + schema file would be a great help in configuration editing (autocompletion and syntax check).
greetings, Seweryn
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On Tue, 2008-12-23 at 06:42 -0800, Michael S Collins wrote:
Hehe, you just stepped on a land mine! There was A LOT of discussion
ok. I promise that this my last post on this subject :)
about this. The simple fact of the matter is that there was no way to make everyone happy so the devs chose a layout that might be "ugly" to some. The key is that XML isn't really "pretty" anyway. The point of XML is that it needs to be machine readable AND human readable. Since humans are (usually) smarter than machines it was decided that machine readable is more important.
I like XML actually. IMHO xml with good editor and schema... there is nothing better for config writer. -- greetings, Seweryn
On Tue, Dec 23, 2008 at 06:42:50AM -0800, Michael S Collins wrote:
Besides, when all of the GUIs get built you won't be hacking XML very much - if at all.
And the XML will still be there for those of us who prefer editing configuration files to using GUIs. I'm very much a Unix shell type of person.
yeah, vim and emacs will always be available as your GUI. ;) -MC On Tue, Dec 23, 2008 at 2:31 PM, Jason White <jason@jasonjgw.net> wrote:
On Tue, Dec 23, 2008 at 06:42:50AM -0800, Michael S Collins wrote:
Besides, when all of the GUIs get built you won't be hacking XML very much - if at all.
And the XML will still be there for those of us who prefer editing configuration files to using GUIs. I'm very much a Unix shell type of person.
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (4)
-
Jason White
-
Michael Collins
-
Michael S Collins
-
Seweryn Niemiec