Re: Mixing OO and DB

From: Robert Martin <unclebob_at_objectmentor.com>
Date: Sat, 8 Mar 2008 16:28:50 -0600
Message-ID: <2008030816285050073-unclebob_at_objectmentorcom>


On 2008-03-06 04:44:48 -0600, "Brian Selzer" <brian_at_selzer-software.com> said:

> 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?

You are asserting that only newbies write small functions. More experienced programmers have the mental capacity to deal with larger and more complex concepts, and so can work with larger functions. In short, "mine's bigger than yours".

If making functions small is good for newbies, then it's very likely good for everyone. If it's not good for everyone, why is it good for newbies?

-- 
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 Sat Mar 08 2008 - 23:28:50 CET

Original text of this message