Re:YAML: Probably not so great after all
by SomeOldThrow on Tuesday August 20, 2019 @01:42AM
(#20744133)
> I've developed programs with tens of thousands of lines of expanded JSON in their config files.
To what end? I don't get what you could possibly be putting in these files that could consume so much space without refactoring.
Re:YAML: Probably not so great after all
by DonHopkins on Tuesday August 20, 2019 @03:23AM
(#20744556)
I posted some examples above. (Or maybe it's below. The long message with lots of links.)
See: https://news.ycombinator.com/item?id=20735231
Also: https://en.wikipedia.org/wiki/Don%27t_repeat_yourself and https://en.wikipedia.org/wiki/Single_source_of_truth
The opposite of DRY (Don't Repeat Yourself) is WET (Write Everything Twice or We Enjoy Typing or Waste Everyone's Time) -- but twice could be ten times or more, there's no limit. Writing it all out again and again by hand as pure literal data, and hoping I didn't make any typos or omissions in each of the ten repetitions, without some sort of logical algorithmic compression and abstraction, would be idiotic.