Premature optimization is the root of all evil

“Pre­ma­ture opti­mi­za­tion is the root of all evil.” is a popu­lar quote with mys­te­rious ori­gins. It is widely attri­bu­ted to Donald Knuth, who appa­rently used it in Struc­tu­red Pro­gram with goto Sta­te­ments but later cre­dits Tony Hoare.

Hoare, howe­ver, did not claim it when I que­ried him in January of 2004:

Dear Hans,

I’m sorry I have no reco­llec­tion how this quo­ta­tion came about.? I might have attri­bu­ted it to Eds­ger Dijkstra.

I think it would be fair for you assume it is com­mon cul­ture or folklore.

Tony.

Bruce Eckel also cre­dits Dijks­tra. Now that would be iro­nic, since the widely-​​attributed first use by Knuth was writ­ten as a rebut­tal to Dijkstra’s Go To Sta­te­ment Con­si­de­red Harm­ful.

blog comments powered by Disqus
Aether Child Theme by altamente decorativo & bendler.tv | built on Thematic Framework