phpc.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A server for PHP programmers & friends. Join us for discussions on the PHP programming language, frameworks, packages, tools, open source, tech, life, and more.

Administered by:

Server stats:

840
active users

When it comes to the anti-XML discussion — readability is an opinion, not a fact. A lot of what programmers claim are facts are just opinions.

I am sorry you dislike XML. I remain unconvinced that using JSON or YAML over it is anything other than a personal preference born out of your chosen programming community’s tribalism.

@grmpyprogrammer When you need to access data from both PHP and JS, then JSON is the only format that is natively consumable from both languages.
That is a fact.
I _personally_ dislike JSON, but it does not mean in such cases I'm going to use XML or anything else and rely on userland 3rd party libs when parsing JSON is a native function away in both PHP and JSON.

Chris Hartjes

@gmazzap That scenario seems correct to me. I wouldn’t advocate trying to get JS code to parse XML.