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

From: Robert Martin <unclebob_at_objectmentor.com>
Date: Thu, 6 Mar 2008 01:19:05 -0600
Message-ID: <2008030601190540977-unclebob@objectmentorcom>


On 2008-03-04 16:56:52 -0600, topmind <topmind_at_technologist.com> said:

>
>
> 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 don't think that's a supportable position. Small steps are always preferable to giant steps.

-- 
Robert C. Martin (Uncle Bob)  | email: unclebob_at_objectmentor.com
Object Mentor Inc.            | blog:  www.butunclebob.com
The Agile Transition Experts  | web:   www.objectmentor.com
800-338-6716                  |
Received on Thu Mar 06 2008 - 01:19:05 CST

Original text of this message