Re: Mixing OO and DB
From: Robert Martin <unclebob_at_objectmentor.com>
Date: Thu, 6 Mar 2008 01:35:45 -0600
Message-ID: <2008030601354538981-unclebob_at_objectmentorcom>
>>
>>
>>
>> Nope.
Date: Thu, 6 Mar 2008 01:35:45 -0600
Message-ID: <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?
-- 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 - 08:35:45 CET