this post was submitted on 15 Oct 2023
392 points (94.3% liked)

Programmer Humor

31349 readers
1189 users here now

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

Rules:

founded 4 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 8 points 9 months ago (1 children)

Which is true for the majority of all XML files I've ever come across in the wild.

[–] [email protected] 3 points 9 months ago (1 children)

I think XML only makes sense if your data is heavily tree-like

[–] misterzero 5 points 9 months ago (2 children)

In that case, why not use JSON?

[–] [email protected] 1 points 9 months ago* (last edited 9 months ago)

JSON spreads out tree nodes vertically (with all the attributes), whereas in XML it's usually one node per line, ie. more compact I suppose. This is just my very niche opinion though

[–] [email protected] 1 points 8 months ago

because you have a thing against solutions that are both beter and easier