Why is it better to have 100 functions operate on one data structure than 10 functions on 10 data structure
问题 I have seen this quoted in a lot of places: "It is better to have 100 functions operate on one data structure than 10 functions on 10 data structures." —Alan Perlis But I have never seen it explained why this should be true. Is it just the idea that you should try to derive the other 9 data structures from the first to avoid duplicating the data? I feel like I'm missing some context. 回答1: The quote is from Alan Perlis' Epigrams on Programming, which was published in 1982. The meaning of this