▲ | throw0101a 5 days ago | ||||||||||||||||
> Do you really need all those features? "You" probably do not. But different "yous" need different features, and so they get all glommed together into one big thing. So no one needs "all" of lbxml2/XML's features, each individual needs a different subset. | |||||||||||||||||
▲ | bartread 5 days ago | parent | next [-] | ||||||||||||||||
It's the same as the old joke about Microsoft Word: people only use 10% of Word's functionality, but the problem is each person uses a different 10%. Of course this is an oversimplification, and there will no doubt be some sort of long tail, but it expresses the challenge well. I'd imagine the same is true for many other reasonably complex libraries, frameworks, or applications. | |||||||||||||||||
▲ | agwa 5 days ago | parent | prev | next [-] | ||||||||||||||||
XML without DTDs is a very reasonable subset that eliminates significant complexity (no need for an HTTP client!) and security risks (no custom character entities that are infinitely recursive or read /etc/passwd!) and would probably still work for >80% of users. (I wrote such an XML parser a long time ago.) | |||||||||||||||||
| |||||||||||||||||
▲ | x0x0 3 days ago | parent | prev [-] | ||||||||||||||||
Not to mention that libxml2 underlies things like nokogiri (the commonly used html parsing gem for ruby), beautifulsoup (python's equivalent), etc. | |||||||||||||||||
|