News for hackers. Stuff that matters.
Re:Why the fuck are we templating YAML? (2019) by bayindirh on Tuesday January 23, 2024 @09:05AM (#39103418)
> Validating incoming XML was a breeze, just give it to the validator class along with the DTD and Schema and boom, done.

See the boom? It's boomer tech. We can't have old, boomer tech in 2024.

Jokes aside, I wish people spent the time to understand the technologies before disliking them and blindly implementing a different, inferior one.

Re:Why the fuck are we templating YAML? (2019) by boredtofears on Tuesday January 23, 2024 @09:49AM (#39104012)
XML is more popular today than it's ever been. It's just called JSX now.
Re:Why the fuck are we templating YAML? (2019) by incrudible on Tuesday January 23, 2024 @10:01AM (#39104189)
Besides being aesthetically similar to SGML, because it maps to HTML, JSX has nothing to do with XML. It is Javascript.
Re:Why the fuck are we templating YAML? (2019) by bayindirh on Tuesday January 23, 2024 @10:24AM (#39104585)
It just looks like JavaScript version of JSP to be honest.
Re:Why the fuck are we templating YAML? (2019) by boredtofears on Tuesday January 23, 2024 @12:58PM (#39106985)
It's literally shorthand for "Javascript XML" and its templating syntax is the same as XML. It has a lot to do with XML.
Re:Why the fuck are we templating YAML? (2019) by incrudible on Monday January 29, 2024 @05:44AM (#39174872)
JSX stands for JSX. Your definition is something that people just imagine to be true. The React docs do not mention the word XML at all. The “templating” syntax is not XML. It has no defined semantics and does not generally support crucial XML features like namespaces.
Re:Why the fuck are we templating YAML? (2019) by boredtofears on Tuesday February 06, 2024 @11:58PM (#39284671)
you obviously didn't spend two seconds researching this

https://en.wikipedia.org/wiki/JSX_(JavaScript)

https://facebook.github.io/jsx/