Re:DRY is an over-rated programming principle?
by gary_0 on Thursday July 07, 2022 @01:44PM
(#32017046)
Yes, that's kind of a "fewer moving parts" way of looking at it.
To be clear, I (like the parent post) was using data structures as a metaphor for the organization of source code: "trees" being code that is conceptually like a branching flowchart with many separate nodes, and "lists" being lines of code kept together in one function/class/file (which the parent post points out has the benefit of "locality").
The graph data structure, I believe, is the most generic of data structures, and it can be used to represent any other data structure. This arguably makes it both the most powerful data structure and the, IMO, the one of last resort.