You are viewing a single thread.
View all comments View context
28 points

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.

permalink
report
parent
reply
21 points
*
Deleted by creator
permalink
report
parent
reply
4 points

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.

permalink
report
parent
reply
7 points

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.

permalink
report
parent
reply
1 point

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.

permalink
report
parent
reply
1 point

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.

permalink
report
parent
reply
9 points
*

[This comment has been deleted by an automated system]

permalink
report
parent
reply
9 points

We were using XML for that before JSON.

permalink
report
parent
reply
3 points

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

permalink
report
parent
reply
16 points

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.

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

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

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 4.2K

    Monthly active users

  • 948

    Posts

  • 10K

    Comments

Community moderators