1230
AI's take on XML (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] schnurrito@discuss.tchncs.de 28 points 1 month ago

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.

[-] skullgiver@popplesburger.hilciferous.nl 21 points 1 month ago* (last edited 1 month ago)

[This comment has been deleted by an automated system]

[-] MonkderVierte@lemmy.ml 4 points 1 month ago

The amount of config.jsons I've had to mess with...

Yeah, json is not a good config format. As much as xml is not. Please use something like YAML or TOML.

[-] sysop@lemmy.world 7 points 1 month ago

I never moved away from ini I've just been sititng back watching you all re-invent the wheel over and over and over and over and over.

[-] reinei@lemmy.world 2 points 1 month ago* (last edited 1 month ago)

It's a wheel, it's supposed to turn over and over and over ad infinitum!

/S (because it's big sarcasm instead of small.)

[-] toastal@lemmy.ml 1 points 1 month ago

I wish more things used Nickel or Dhall for config. I don’t know why I wouldn’t want editor support for type information or the ability to make functions in my non-Turing-complete config to eliminate boilerplate on my end.

[-] schnurrito@discuss.tchncs.de 1 points 1 month ago

Of course you can use XML that way, but it is unnecessarily verbose and complex because you have to make decisions, like, whether to store things as attributes or as nested elements.

I stand by my statement that if you're saving things to a file you should probably use XML, if you're transferring data over a network you should probably use JSON.

[-] skullgiver@popplesburger.hilciferous.nl 9 points 1 month ago* (last edited 1 month ago)

[This comment has been deleted by an automated system]

[-] sik0fewl@lemmy.ca 9 points 1 month ago

We were using XML for that before JSON.

[-] schnurrito@discuss.tchncs.de 3 points 1 month ago

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

[-] sik0fewl@lemmy.ca 16 points 1 month ago

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 1 month ago

XML is much more annoying to read/write by hand

[-] 0xD@infosec.pub 1 points 1 month ago

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

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

Programmer Humor

32282 readers
1234 users here now

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

Rules:

founded 5 years ago
MODERATORS