this post was submitted on 08 Sep 2024
1222 points (98.2% liked)

Programmer Humor

32464 readers
234 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] schnurrito@discuss.tchncs.de 28 points 2 months ago (2 children)

IMHO: XML is a file format, JSON is a data transfer format. Reinventing things like RSS or SVG to use JSON wouldn't be helpful, but using XML to communicate between your app's frontend and backend wouldn't be either.

[–] sik0fewl@lemmy.ca 9 points 2 months ago (1 children)

We were using XML for that before JSON.

[–] schnurrito@discuss.tchncs.de 2 points 2 months ago (1 children)

Yes and it is a good thing we don't anymore.

[–] sik0fewl@lemmy.ca 16 points 2 months ago (2 children)

Why? JSON hasn't given us anything XML hasn't, except maybe a bit of terseness.

I do agree SOAP is a bit over engineered, though, but that's not the fault of XML.

[–] exu@feditown.com 4 points 2 months ago

XML is much more annoying to read/write by hand

[–] 0xD@infosec.pub 1 points 2 months ago

As a pentester, if I see XML in HTTP I start crying.