2022-17
很喜歡這段 一次罵兩個觀念
Programming literature on optimization always starts with a well-known quote by the famous computer scientist Donald Knuth: "Premature optimization is the root of all evil." Not only is the statement wrong, but it's also always misquoted. First, it's wrong because everybody knows that the root of all evil is object-oriented program ming since it leads to bad parenting and class struggles. Second, it's wrong because the actual quote is more nuanced. This is almost another case of lorem ipsum, which is gibberish because it is quoted from the middle of an otherwise meaningful Latin text. Knuth's actual statement is, "We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil. Yet we should not pass up our opportunities in that critical 3%."
推薦給所有的教條主義程式設計工程師
Comments