Sadistic library authors (my rant about Xerces for C++)

Started by
26 comments, last by wack 12 years, 1 month ago
Whats wrong with TinyXml++? Its a few source files you can drop into your project and code written with it is about as concise as parsing xml can be. The few times I've had to parse xml in C++ its worked pretty well for me.

It might not be the fastest thing there is, but the decision to use xml pretty much admits that you favor human readability over performance anyway.

Edit: Doh i see you were looking for something that validates against a schema which I don't think TinyXml++ does. I validation is something that you decide can fall off the cart, check out TinyXml++.
Advertisement

I'd like to remind all of you that we are talking about XML, Xerces, and libraries. Not languages. If this becomes a language thread, I will end it.


Not to question your ultimate authority, but if it happens with the consent of the OP, and with good manners, whats the problem exactly?

My point is merely that the typical usability of a library is strongly intertwined with the characteristics of the language it is written in; and that C++ scores low on this metric, in my opinion. Not that crazy a tangent, is it?

The D language has completely failed to gain any traction whatsoever since they started. It seems well on it's way to becoming a minor footnote in programming history at this point. Which is a shame, becaue it did indeed seem promising.

The failure of D has, as far as I can see (having followed it from a safe distance) is mainly because of two reasons:

  1. No support from any of the large OS vendors, who aw greater benefit in peddling their own stuff instead.
  2. Internal bickering. Instead of making a decision and sticking with it, there are now two different standard libraries for it. Whopee.


True, traction is low. Indeed, they should have teamed up with a large player in an earlier phase; it works well enough on any platform with the LLVM backend, but its lacking critical mass.

There are many XML-parsers out there that are faster than Xerces, but they are mostly toy XML-parsers for people who often have no idea of why they are using XML in the first place. The one benchmarked in D seems to be one of them.
[/quote]
That might indeed be the case.

[quote name='Promit' timestamp='1332788172' post='4925422']
I'd like to remind all of you that we are talking about XML, Xerces, and libraries. Not languages. If this becomes a language thread, I will end it.


Not to question your ultimate authority, but if it happens with the consent of the OP, and with good manners, whats the problem exactly?
[/quote]
A long, sordid history of language flamefests degenerating into complete and utter shite on this forum, as they attract out every lurker who doesn't know what they're talking about but has strong (and wrong) "opinions" and "facts" about programming languages. This derails and prematurely ends thread after thread in the process, either because the concentrated stupid drives away the rest of the participants, or baits them into participating, or gets bad enough that a moderator has to close it.

Premature thread death is seen as bad for some reason, so effort is taken to avoid it.

My point is merely that the typical usability of a library is strongly intertwined with the characteristics of the language it is written in; and that C++ scores low on this metric, in my opinion. Not that crazy a tangent, is it?

Wack's bringing up lists of C#, Java, and C++ "pros/cons". Without reading too closely (as like many members, I've taken to skimming past this stuff when it comes up as it comes up so often) that certainly smells like it's getting/heading toward the rather tangential. And -- lets assume I'm full of shit and it's completely on topic (since I am skimming after all) -- it's still exactly the kind of thing that will attract the wrong sort of people and conversation.

So what can be done? Well, if you're Promit, you can tell the wrong sort to fuck off before they even start, and remind the right sort not to fall into the trap again.

And now you know (tm)

[quote name='Eelco' timestamp='1332837904' post='4925588']
[quote name='Promit' timestamp='1332788172' post='4925422']
I'd like to remind all of you that we are talking about XML, Xerces, and libraries. Not languages. If this becomes a language thread, I will end it.


Not to question your ultimate authority, but if it happens with the consent of the OP, and with good manners, whats the problem exactly?
[/quote]
A long, sordid history of language flamefests degenerating into complete and utter shite on this forum, as they attract out every lurker who doesn't know what they're talking about but has strong (and wrong) "opinions" and "facts" about programming languages. This derails and prematurely ends thread after thread in the process, either because the concentrated stupid drives away the rest of the participants, or baits them into participating, or gets bad enough that a moderator has to close it.

Premature thread death is seen as bad for some reason, so effort is taken to avoid it.

My point is merely that the typical usability of a library is strongly intertwined with the characteristics of the language it is written in; and that C++ scores low on this metric, in my opinion. Not that crazy a tangent, is it?

Wack's bringing up lists of C#, Java, and C++ "pros/cons". Without reading too closely (as like many members, I've taken to skimming past this stuff when it comes up as it comes up so often) that certainly smells like it's getting/heading toward the rather tangential. And -- lets assume I'm full of shit and it's completely on topic (since I am skimming after all) -- it's still exactly the kind of thing that will attract the wrong sort of people and conversation.

So what can be done? Well, if you're Promit, you can tell the wrong sort to fuck off before they even start, and remind the right sort not to fall into the trap again.

And now you know ™
[/quote]
Note how Wack is the OP of this thread. Isnt he free to take his thread in any direction he wants it to, as long as he is not posting goatse?

I know language threads devolve often and quickly. That doesnt justify a guilty until proven innocent attitude though, I would say.

Note how Wack is the OP of this thread. Isnt he free to take his thread in any direction he wants it to, as long as he is not posting goatse?

I wouldn't necessarily agree with that, although it is a matter of interpretation.

Basically, when you create a thread with a specific topic, you produce a reasonable expectation among your fellow forum-dwellers, that the thread will indeed adhere to the aforementioned topic.

If, over the course of the discussion, the topic naturally drifts (i.e. discussion highlights previously unnoticed preconditions/ramifications, thus modifying the topic under consideration), we have no problem. But if there is a sudden jump from 'XML parsing libraries are difficult' to 'language X sucks', where 'language X sucks' has already been established to be verboten - then we have a problem.

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]


[quote name='Eelco' timestamp='1333232753' post='4927039']
Note how Wack is the OP of this thread. Isnt he free to take his thread in any direction he wants it to, as long as he is not posting goatse?

I wouldn't necessarily agree with that, although it is a matter of interpretation.

Basically, when you create a thread with a specific topic, you produce a reasonable expectation among your fellow forum-dwellers, that the thread will indeed adhere to the aforementioned topic.

If, over the course of the discussion, the topic naturally drifts (i.e. discussion highlights previously unnoticed preconditions/ramifications, thus modifying the topic under consideration), we have no problem. But if there is a sudden jump from 'XML parsing libraries are difficult' to 'language X sucks', where 'language X sucks' has already been established to be verboten - then we have a problem.
[/quote]

I agree and sorry for letting myself be tricked off-topic.

One of the reasons I don't come here so much anymore (in the late 90:s or early 00:s I was here more, but the old account was somehow lost). is that no matter what you post, someone will always start to question things that weren't part of the topic in the first place (for example the "why aren't you using my favorite language instead" derail). I don't need any of that, as I know what I'm doing most of the time.

Other forums seem to have this under stricter control. I have rarely seen it on stackoverflow, for example. If someone asks about ODBC, nobody jumps out of the box and says "You should use LINQ instead lol it's much easier!!"

I don't know if it's because this is a game forum, where the code is expected to live for a relatively short amount of time, or if it's just that there are so many beginners here that people have just become jaded and respond to everything automatically as if the question was asked by a kid.

Well I feel lika I have been trolled off-topic again. This thread is going nowhere. Please close.
[quote name='swiftcoder' timestamp='1333811760' post='4929050'] [quote name='Eelco' timestamp='1333232753' post='4927039'] Note how Wack is the OP of this thread. Isnt he free to take his thread in any direction he wants it to, as long as he is not posting goatse?
I wouldn't necessarily agree with that, although it is a matter of interpretation. Basically, when you create a thread with a specific topic, you produce a reasonable expectation among your fellow forum-dwellers, that the thread will indeed adhere to the aforementioned topic. If, over the course of the discussion, the topic naturally drifts (i.e. discussion highlights previously unnoticed preconditions/ramifications, thus modifying the topic under consideration), we have no problem. But if there is a sudden jump from 'XML parsing libraries are difficult' to 'language X sucks', where 'language X sucks' has already been established to be verboten - then we have a problem. [/quote] I agree and sorry for letting myself be tricked off-topic. One of the reasons I don't come here so much anymore (in the late 90:s or early 00:s I was here more, but the old account was somehow lost). is that no matter what you post, someone will always start to question things that weren't part of the topic in the first place (for example the "why aren't you using my favorite language instead" derail). I don't need any of that, as I know what I'm doing most of the time. Other forums seem to have this under stricter control. I have rarely seen it on stackoverflow, for example. If someone asks about ODBC, nobody jumps out of the box and says "You should use LINQ instead lol it's much easier!!" [/quote]
I hope thats not a characterization of my response. As I said before, there are plenty of convincing reasons to use C++, and I dont doubt youve got them, but I do believe the poor encapsulation and usability of many C++ libraries is the result of the design of the language itself.

[color=#282828][font=helvetica, arial, verdana, tahoma, sans-serif]

Well I feel lika I have been trolled off-topic again. This thread is going nowhere. Please close.

[/font][/quote]
Just out of curiosity: where exactly did you intend you self-professed rant to go?


Just out of curiosity: where exactly did you intend you self-professed rant to go?


As was stated in the OP:

[color=#282828][font=helvetica, arial, verdana, tahoma, sans-serif]

I would also like to hear your own personal rants about your most hated software libraries, so feel free to post them here. Well here goes...

[/font]
[/quote]

This topic is closed to new replies.

Advertisement