3 ms·
I've developed programs with tens of thousands of lines of expanded JSON in their config files. No fucking way I'm maintaining all that by hand as pure data. S
by DonHopkins 7y ago
I've developed programs with tens of thousands of lines of expanded JSON in their config files. No fucking way I'm maintaining all that by hand as pure data.
See: https://news.ycombinator.com/item?id=20735231 https://news.ycombinator.com/item?id=20735231
Also: https://en.wikipedia.org/wiki/Don%27t_repeat_yourself https://en.wikipedia.org/wiki/Don%27t_repeat_yourself and https://en.wikipedia.org/wiki/Single_source_of_truth 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.
- SomeOldThrow 7y ago> 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.
- DonHopkins 7y agoI posted some examples above. (Or maybe it's below. The long message with lots of links.)