News for hackers. Stuff that matters.
Re:XML is better than YAML by frant-hartm on Thursday September 21, 2023 @01:15AM (#37593457)
> If one person uses the technology wrong, it's a problem with that person, but if most people use the technology wrong, it's a problem with the technology.

But yaml has the exact same problem. People use it where they shouldn't.

Re:XML is better than YAML by lmm on Thursday September 21, 2023 @03:00AM (#37594102)
I'm not a big fan of YAML, but I think it has a better "hit rate" than XML.
Re:XML is better than YAML by ExoticPearTree on Thursday September 21, 2023 @08:04AM (#37596385)
Do a mental exercise and think about what would k8s with XML configuration would have looked like and if would have taken off like it did using XML for configuration instead of YAML.

This is just an example.

Besides Microsoft frameworks that use XML as configuration, and Java frameworks and servers using XML for configuration (Tomcat comes to mind), no one else uses it. Maybe traditional software whose programmers don't know any better.

So yeah, I think the world doesn't like XML for really good reasons.

Re:XML is better than YAML by XorNot on Thursday September 21, 2023 @08:19AM (#37596537)
K8S problem really isn't YAML, it's that the thing it's trying to configure is a naturally complicated space that really wants to be typed but can't commit to any one language either.
Re:XML is better than YAML by frant-hartm on Thursday September 21, 2023 @04:20PM (#37603710)
I would have very much preferred it. It would be a lot more readable and accessible. Nowadays there is tooling, but imagine having schemas and autocomplete for all the K8s files from day 1.

So pretty much all enterprises use it. Not bad for tech not in fashion.