[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

XML

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 20
Thread images: 1

File: xml.png (1MB, 671x582px) Image search: [Google]
xml.png
1MB, 671x582px
Is XML the least efficient way to encode/transfer data?
>>
>>59541301
probably yes
>>
>>59541301
>>59542667
That's not the point of XML. It's supposed to be easily humanly readable. And declarative.

I personally believe ALL declarative languages are BORING.

e.g. look at SQL, it's literally the boringest shit ever.
>>
>>59542691
You make no sense. Name one data format which isn't declarative.
It's a fucking markup language, not a programming language.
>>
>>59541301
at least it's machine readable.
There are companies that transfer data by sending pdfs per mail which have to be processed manually.
>>
>>59542691
>It's supposed to be easily humanly readable.
No no, it is supposed to be easily parseable by machine. It is also human readable, but not easily. Way too bulky.
>>
Hardly. XML strikes a balance between human readability and standardized parsing without going pants-on-head retarded with the markup bloat (like RTFs do). If you've ever had to manually decode an efficiently-packed file-stream, you'd understand why XML is not just a human convenience, but also a development one (though JSON is usually better for that).
>>
EHLO 4chan

I think email is also pretty shit

TBHFAMPAI
>>
It's very inefficient.
But it's very neatly organised.
>>
XML was created so idiots could parse too.
>>
i have never seen a XML file that was readable
>>
Yes, but unreadable as fuck.
>>
>>59544934
What do you people expect? A novel?
>>
>>59544968
A JSON document, I suppose.
>>
>>59541301
Depends on the data.
It's still the best thing for actual marked up text, like type setting data with multiple targets.
>>
I'm pretty sure XML is only meant to be generated by programs and read by programs. If anyone has to manually write these things or read them in text editors then I truly feel sorry for you.
>>
>>59545782
this. i dont understand the point of this thread. it's not meant to be read or written by people. json isn't any more readable.
>>
The Brazilian government emits 10 million tax invoice/receipts per day using XML. No problem whatsoever. And it's a big fucking document.

https://www.webdanfe.com.br/danfe/exemplos/NFe_assinada.html
>>
>>59545782
Yeah, it's *meant* to be generated by programs and read by programs.

In practice though, fucking dumb asshole java developers will use it for *everything*, especially config files, when they could have used yaml, which is even more easily serialized / templated

Fuck Tomcat, fuck it to death
>>
>>59541301

it's not supposed to be efficient, it's supposed to be human-readable and platform-independent
Thread posts: 20
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

If you need a post removed click on it's [Report] button and follow the instruction.
If you like this website please support us by donating with Bitcoin at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties. Posts and uploaded images are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that website. If you need information about a Poster - contact 4chan. This project is not affiliated in any way with 4chan.