Re: Methods as Comments (Re: Mixing OO and DB)

From: topmind <topmind_at_technologist.com>
Date: Tue, 4 Mar 2008 14:56:52 -0800 (PST)
Message-ID: <ada55f1b-e5aa-441e-a1ea-a1368288eff5_at_e10g2000prf.googlegroups.com>


Robert Martin wrote:
> On 2008-03-03 11:36:55 -0600, topmind <topmind_at_technologist.com> said:
>
> > I vehemently disagree. Method/functions used as mere comments is a
> > recipe for code cluttered with way too many methods/functions. I don't
> > know how your eyes and brain and fingers work, but I do not like that
> > code style whatsoever. It would slow me down. It is bureaucratic and
> > anti-KISS.
>
> On the contrary, KISS means keep all your methods very simple. That
> means having lots of little simple methods, not a few methods who's
> left margins look like a crosscut saw with broken teeth.

Lots of fairly simple things are not necessarily better than a mix of fewer things of medium-complexity. I've even had other developers claim that I over-slice routines such that I believe I am in the middle ground on the mix of short-and-lots versus long-and-few.

Again, you are extrapolating your personal preference onto others. I am giving you the benefit of the doubt and agreeing that such a style may work well for YOU. I am not knocking you for having such a preference. But I am knocking you for assuming that is a universally superior style.

I remember about 12 years ago there was a huge flame-war over semicolons  versus non-semicolon syntax in the Infoworld forums. About a dozen people were arguing religiously for their favorite. After about a month of bickering about things like peripheral vision and symbol identification speeds, I realized that people just think and see different. (Bertrand Meyer also commented on semi-colon fights in his book.)

Studies also show that people read words differently. Some see the shape of words themselves, other parse one-letter-at-a-time. When writing, some think visually, some phonetically, etc.

Let it go. Viva Le Difference (warning: bad french)

>
> --
> Robert C. Martin (Uncle Bob)��| email: unclebob_at_objectmentor.com
> Object Mentor Inc.� � � � � ��| blog:��www.butunclebob.com

-T- Received on Tue Mar 04 2008 - 23:56:52 CET

Original text of this message