Re: Mixing OO and DB

From: Brian Selzer <brian_at_selzer-software.com>
Date: Thu, 6 Mar 2008 05:44:48 -0500
Message-ID: <AWPzj.7977$Mh2.6114_at_nlpi069.nbdc.sbc.com>


"Robert Martin" <unclebob_at_objectmentor.com> wrote in message news:2008030601354538981-unclebob_at_objectmentorcom...
> On 2008-03-05 00:27:50 -0600, Marshall <marshall.spight_at_gmail.com> said:
>
>> On Mar 4, 10:00 pm, Robert Martin <uncle..._at_objectmentor.com> wrote:
>>> On 2008-03-03 19:58:10 -0600, Marshall <marshall.spi..._at_gmail.com> said:
>>>
>>>> On Mar 3, 5:39 pm, Robert Martin <uncle..._at_objectmentor.com> wrote:
>>>
>>>>> A function should be no longer than five or ten lines of code. A
>>>>> function should have no more than one indent level. The body of each
>>>>> if statement should call one function. The body of each loop
>>>>> statement
>>>>> should call one function.
>>>
>>>> Can you back up any of these commandments with actual data?
>>>> What *measurable* consequences result if they are not
>>>> adhered to?
>>>
>>> Nope.
>>
>> Then how do you know you're not imagining any benefits
>> you perceive as resulting from the above dicta?
>
> How do you know you aren't imagining that you are currenty reading this.
>
> A function should be no longer than five or ten lines of code. This is
> about as obvious and self-evident as it can be. Are you really going to
> argue that functions should be longer?
>

This is asinine. A function should be as long as it needs to be. Artificial restrictions such as your five to ten lines are imposed to force neophytes to learn to break up big problems into smaller ones so that they can become productive sooner. Are you still a neophyte?

> --
> 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 - 11:44:48 CET

Original text of this message