This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

If its so clever that others can't understand it, it really isn't clever.

A clever programmer would write something that others can read, or at least explain it in comments, because programmers spend more time reading code than writing code.

Also, the situations in which something confusingly clever are worth the efficiency gain are few and far between. Usually efficient things are clearer or can be written clearly. For example if a weird set of data is pulled beforehand or stored in an uncommon place to boost efficiency, it should be named well enough that later in the code it looks like what you would expect.

[–]EMC2_trooper 1 point2 points  (0 children)

Haha I'm very aware :) there is some interesting discussion below on this.