Dr. Dobb's Calls BS On Obsession With Simple Code 381
theodp writes "Over at Dr. Dobb's, Editor-in-Chief Andrew Binstock has a nice rant on The Misplaced Obsession with Simplicity. 'Any idiot can write complex code,' goes the old maxim, 'the true art is writing simple code.' Right, Andrew? Wrong (mostly). Binstock explains, 'It's not true that any idiot can write complex code. Complex code is difficult, often very difficult, to write. It's entirely true that it's more difficult to maintain, too. But that's the nature of complexity. Some things are intensely difficult to express in code and they require complexity, simply because they're not inherently simple.' After citing the complex-but-necessarily-so code of Al Aho and sometimes-misguided reverence for cyclomatic complexity limits to help make his point, Binstock concludes, 'My view of simplicity is unemotional and free of idolatry because I define it with respect to complexity, rather than the other way around: Simplicity is the quality of code that is no more complex than required to express the underlying complexity. In this way, simple code can be intensely complex. There is no inherent good/bad dichotomy.'"
Re:To quote Einstein (Score:5, Funny)
That quote is attributed to Einstein, but you should know by now a great many quotes are attributed to him, but very few can be proven to have been from him. -_-
"There's no such thing as a correct quote citation on the internet." -- Abraham Lincoln
Re:To quote Einstein (Score:4, Funny)
In the words of Albert Einstein: "I never said most of the things I said."
Re:To quote Einstein (Score:5, Funny)
Clearly, not taking his own advice here...
Re:To quote Einstein (Score:3, Funny)
I've seen extremely complicated code designed to handle "what-if" scenarios that never happen.
As is usually the case, XKCD covered this [xkcd.com] well. The image title is particularly good:
I find that when someone's taking time to do something right in the present, they're a perfectionist with no ability to prioritize, whereas when someone took time to do something right in the past, they're a master artisan of great foresight.