3

I know that this is a very generic question, but I am sure this question will benefit most of the developers in making a choice of YAML over other markup languages stack overflow.

I came to know about YAML from one of my lab mates, who used to use it for all intermediate file operations in his project that we were working on. I asked him why only YAML? Why not JSON or XML? He said YAML is quite popular these days and that didn't seem quite a satisfying answer to me.

So asking here, why YAML over JSON and XML? In what scenarios does choosing YAML over any other language will be a good/bad choice.

Is there any other language that does better than YAML?

kishoredbn
  • 2,007
  • 4
  • 28
  • 47
  • and http://stackoverflow.com/questions/1308536/yaml-compared-to-xml – ceejayoz Mar 02 '16 at 00:49
  • Note that neither JSON nor YAML are markup languages (XML is). – Thilo Mar 02 '16 at 00:50
  • Thanks for your response. But my question is not just comparing YAML over XML or JSON but to the whole gamut of markup like languages. Also I seek for a better markup language if possible. – kishoredbn Mar 02 '16 at 00:51
  • I think a large part of it is YAML being the fault markup language for Ruby on Rails. – Taylor Ackley Mar 02 '16 at 00:53
  • Markup languages help with formatting text. Templating languages help with programmatically writing text (think MadLibs). Data-serialization lanaguages help store data. YAML and JSON are for serialization. YAML has the benefit of being the most "human readable". In fact it's so human readable that some people use it as a markup language. – max pleaner Mar 02 '16 at 09:59
  • YAML is less redundant in marking up the data than JSON and even more than XML. That is why YAML more closer to human-readable format and so popular. Btw this question is also redundant. – rook Mar 03 '16 at 23:02

0 Answers0