Why is cleverness considered harmful in programming by some people?

Posted by Larry Coleman on Programmers See other posts from Programmers or by Larry Coleman
Published on 2010-12-10T16:54:12Z Indexed on 2011/01/08 20:00 UTC
Read the original article Hit count: 270

Filed under:

I've noticed a lot of questions lately relating to different abstraction techniques, and answers saying basically that the techniques in question are "too clever." I would think that part of our jobs as programmers is to determine the best solutions to the problems we are given to solve, and cleverness is helpful in doing that.

So my question is: are the people who think certain abstraction techniques are too clever opposed to cleverness per se, or is there some other reason for the objection?

EDIT: This parser combinator is an example of what I would consider to be clever code. I downloaded this and looked it over for about half an hour. Then I stepped through the macro expansion on paper and saw the light. Now that I understand it, it seems much more elegant than the Haskell parser combinator.

© Programmers or respective owner

Related posts about abstraction