Thread: The worst epithet for a programmer: 'Clever'.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    1,619

    The worst epithet for a programmer: 'Clever'.

    I used to hate sloppy programmers, but now I've come to see there's an even worse beast - the *clever* programmer. A sloppy programmer tends to make big, sloppy errors, the kind you find and can easily track down. A clever programmer creates the kind of subtle errors that you spend days tearing your hair out searching for.

    For example, in the software I maintain, one particular feature searched a particular subset of transactions. The author of the feature realized you could improve performance by quite a bit if you just made one tiny assumption - that transaction IDs monotonically increase with time (that is, that transaction #X occurred later than transaction #Y iff X > Y.)

    In 99.9999% of cases this is true - however, under certain very rare circumstances, a transaction may be created out of order. If that transaction isn't of the type that this feature considers, no big deal. And if it is, in that one in a million chance, this feature loops over a nearly correct (but not quite) set of results. It was a very clever optimization, but in the end it created a nigh impossible to identify bug that lingered for years. In fact, it was a fluke that it was EVER caught.

    I think I actually prefer maintaining code from mediocre programmers the best. They're good enough not to make an endless amount of mistakes, and they're not clever enough to come up with the subtle 'shortcuts' that nearly always work, but occasionally explode in your face.
    Last edited by Cat; 04-13-2011 at 11:40 PM.
    You ever try a pink golf ball, Wally? Why, the wind shear on a pink ball alone can take the head clean off a 90 pound midget at 300 yards.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A clever way to increasing productivity
    By elninio in forum Linux Programming
    Replies: 4
    Last Post: 07-31-2008, 02:07 PM
  2. coding clever program
    By rogster001 in forum Game Programming
    Replies: 1
    Last Post: 12-20-2007, 06:52 AM
  3. A clever way to name unknown amount of variables
    By Maz in forum C++ Programming
    Replies: 4
    Last Post: 03-29-2006, 11:59 PM
  4. Reasonably Clever
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 05-04-2004, 08:51 AM
  5. Reasonably Clever
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 13
    Last Post: 04-30-2003, 06:05 PM