He said XP, LOL! XP is going to be the death of our industry.Originally posted by: drag
Extreme Programming
Originally posted by: torpid
XML itself is not great. The virtually universal acceptnace of XML is. The biggest problem with using XML always is the size of the data. Sometimes it's just impractical to have enormous XML files.
I've never understood proprietary text files as a preferred anything over XML. Maybe CSV files, but those aren't proprietary. With XML almost every platform has a pretty strong set of functions to search, manipulate, validate, import, and export to XML.
I don't know enough about the low-level unix stuff, but I know that if some programmer here used a proprietary text format over XML just because of their "preference", I would consider this person a pretty weak programmer.
equals Perl. It's a mainstay tool of every experianced Unix administrator.has a pretty strong set of functions to search, manipulate, validate, import, and export to
Originally posted by: drag
edit:
I forgot to mention this:
In Unix-land when it comes to text filesequals Perl. It's a mainstay tool of every experianced Unix administrator.has a pretty strong set of functions to search, manipulate, validate, import, and export to
Originally posted by: drag
Well I don't think it's so much as "hate", it's more of a "disgust".
Note, that personally I don't realy care. I figure it's up to the author to choose what he/she/they wants to use and that's because they are the ones that are developing the actual application so if anybody knows, they should.
That being said, your going to get a kneejerk negative reaction because XML is simply a data encapuslation format, but people think it's something special. It's the market hype, it causes a alergic reaction...
For instance take plain text configuration files vs XML formatted text configuration files. To unix guys, it's a solved problem and plain text solves it and it has lots of benifits in itself. Same thing with log files. It's a "been there done that" attitude. Unix itself is highly developed and evolved entity, there have been hundreds of different ways of doing any one thing and what survives lasted this long, not because of hype or irrational stuborness, but because it works.
You want clean, simple systems. Marketting/fanboy-sh bullet points are the anti-christ of Unix.
For instance other terms that cause kneejerk negative reactions:
Object Oriented programming
Java
C++
Extreme Programming
You get things like: "You should re-write the kernel in C++ so that you can reap the benifits of Object Oriented programming, here are all the reason why: blahblahblahblahblab"
Reply: "OO is usefull in some situations is, but we don't care about those benifits it works fine without it. Rewriting what works is pointless and it's just going to break lots of stuff"
Counter point: "But C is crap! I mean get with the program, so-and-so and so-and-so uses C++ and is faster/stable/easier to manage."
Now what is going on a average Unix developer mind: "Grrrrr....."
Same thing with java:
"Use Java, it's portable!"
OSUG(Old School Unix Guy.): "C is portable"
"But you have to deal with memory issues!"
OSUG: "That's why we have Perl/Python so we dont' have to deal with that crap if it's not needed"
"But Java is faster!!"
OSUG: "If you care about speed, use C or whatever"
"Use Java it's portable and you can use Extreme Programming techics with OO style code management to leverage your cross platform code to produce multi-tiered synergy in your overal market strategery and then run it all on super-slick XML formats that will speed your developement time and reduce costs!! And if Java is to slow use C++, C will make your programs a unmanageble mess (then runs on for 15 minutes giving examples of bad C programming) and Microsoft is going to kick your but with C# if you don't modernize!!!"
OSUG: "Grrr...."
So if you want to have a constructive conversation, then you point out things you think would benifit from XML, and you'll get to the point were you'll get shot down a few times, but find some places were XML would be great, eventually.
Originally posted by: DaveSimmons
Using XML offers validation tools and access to processing libraries, but you still have to write a lot of your own code to load or save data, just as with a text or binary format. When exchanging data with another program, that other program still needs code written to deal with the specific contents of the XML, down to the exact tag names. In some cases both programs might be using some domain-specific library / definition but you still need to write code to match tags to your own variables.
Originally posted by: DaveSimmons
I do a fair amount of work with SOAP, which seems similar to your datamapping. My point wasn't that you had to manually write your own tags to the file, but that both client and server (or peer and peer) do need code to decide what to marshal, and one the other end to unmarshal and process data. Also, if the other program is not using the same datamapping library/framework it might have to write the complete "state machine" mapping from scratch as usual instead of having it generated by your XML definition.
People get the idea (including article writers) that as soon as you have a WSDL definition of your SOAP services, a program can automagically bring in or send out data with no extra coding, when actually both sides do still need code to make the SOAP calls and to decide what variables to bind the data to. Sometimes by the time you're finished it's much more work than the old plain HTTP / HTML we used to use for web services.
Most of my work is Windows client-side in C++, but that looks like a good tool for java, especially (for peers or client/server) if both programs are java. If the other program is C/C++ you're back to building up object mappngs tag by tag.Originally posted by: kamper
I guess I'm not teaching you anythingMy personal experience with xml web services has been quite good but I think you've probably had more experience in the area than I have. Btw, I was talking about Castor. Does this look better/comparable/worse than what you've used?
True, and using XML probably saved some time over creating a proprietary format.The only thing that mattered is that both sides agreed on an allowed document structure (fairly simple to do) but how we parse/handle it is completely irrelevant.
Originally posted by: amdfanboy
Really, why's it so bad?
Sure, except I'm not familiar with all the data that needs to be specified. A hierarchical format might not be necessary for the current requirements. In order to properly use xml you might end up changing the semantics of the configuration. But, note that part of the file already uses an xml like structure (<Directory> and the like).Originally posted by: n0cmonkey
Write up an XML version of the httpd.conf.
That depends entirely on how abstractly the config information location is written at the moment.Make sure apache will not need more than minor changes to use it.
Not going to happenMake sure it is a comparable size to the existing httpd.conf.
That's extremely simple (at least the conversion part). You can parse the current conf file programmatically. You can generate the xml config file programatically. You can write a script/program to convert all information and comments perfectly. Whether or not the crusty old admin takes the time to learn to understand xml is entirely up to himAnd most importantly, make sure it is easy enough for any seasoned admin to convert to within minutes and understand fully.
I hope I never implied that apache should no longer use its current conf file format. All I would like to say is that I think xml is appropriate, the current system works well too. Perhaps a happy medium would be the ability of the server to handle either format.We can talk about conving the world to switch later.![]()
Originally posted by: kamper
Sure, except I'm not familiar with all the data that needs to be specified. A hierarchical format might not be necessary for the current requirements. In order to properly use xml you might end up changing the semantics of the configuration. But, note that part of the file already uses an xml like structure (<Directory> and the like).Originally posted by: n0cmonkey
Write up an XML version of the httpd.conf.
That depends entirely on how abstractly the config information location is written at the moment.Make sure apache will not need more than minor changes to use it.
Not going to happenMake sure it is a comparable size to the existing httpd.conf.But why should it?
That's extremely simple (at least the conversion part). You can parse the current conf file programmatically. You can generate the xml config file programatically. You can write a script/program to convert all information and comments perfectly. Whether or not the crusty old admin takes the time to learn to understand xml is entirely up to himAnd most importantly, make sure it is easy enough for any seasoned admin to convert to within minutes and understand fully.
I hope I never implied that apache should no longer use its current conf file format. All I would like to say is that I think xml is appropriate, the current system works well too. Perhaps a happy medium would be the ability of the server to handle either format.We can talk about conving the world to switch later.![]()
Point taken, but how often do you transmit httpd.conf over the internet?9600bps is slow.![]()
Again, point taken. Unneeded bloat is never good (although I contest that the xml version would be easier to maintainApache would need a new parser, that does not interfere with the old one. Would it need libxml? It would need teams to test both configurations, as well as teams to maintain them.
Originally posted by: kamper
Point taken, but how often do you transmit httpd.conf over the internet?9600bps is slow.![]()
Again, point taken. Unneeded bloat is never good (although I contest that the xml version would be easier to maintainApache would need a new parser, that does not interfere with the old one. Would it need libxml? It would need teams to test both configurations, as well as teams to maintain them.). I'd be willing to bet that xml has already touched apache in such a way that the xml parsing library needed would already be available at no extra cost. If not, I'm clearly in the wrong.
