1216
AI's take on XML (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] nekusoul@lemmy.nekusoul.de 15 points 1 week ago* (last edited 1 week ago)

On one hand I agree, on the other hand I just know that some people would immediately abuse it and put relevant data into comments.

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

do they do that in xml? never seen that

[-] Ephera@lemmy.ml 3 points 1 week ago

I have actually seen it in an XML file in the wild. Never quite understood why they did it. Anything they encoded into there, they could have just added a node for.
But it was an XML format that was widely used in a big company, so presumably somewhere someone wrote a shitty XML parser that can't deal with additional nodes. Or they were just scared of touching the existing structure, I don't know.

[-] Feathercrown@lemmy.world 5 points 1 week ago

This is why there are none, but I still think it's dumb. Parsers can't see comments anyways.

[-] nekusoul@lemmy.nekusoul.de 8 points 1 week ago* (last edited 1 week ago)

That's assuming people actually use a parser and don't build their own "parser" to read values manually.

And before anyone asks: Yes, I've known people who did exactly that and to this day I'm still traumatized by that discovery.

But yes, comments would've been nice.

this post was submitted on 08 Sep 2024
1216 points (98.3% liked)

Programmer Humor

32045 readers
1336 users here now

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

Rules:

founded 5 years ago
MODERATORS