Re: Mixing OO and DB
Date: Thu, 06 Mar 2008 14:05:47 -0800
Message-ID: <ecq0t3dbk46128o5h0pdfsgd8i2mh00dv3@4ax.com>
Robert Martin <unclebob_at_objectmentor.com> wrote:
[snip]
>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?
Hmm. It used to be a page. Attention spans are getting shorter?
Of course I am going to argue against such ridiculously low limits. Some functions are longer. Splitting them up into small pieces can make them much harder to follow.
I have had cases of snippets, that if I were to convert them to functions, what with all of the context that I would have to pass and handle, that the calling sequence (setup, call, wrapup) could be longer than the snippet. That way lies madness.
Sincerely,
Gene Wirchenko
Computerese Irregular Verb Conjugation:
I have preferences.
You have biases.
He/She has prejudices.
Received on Thu Mar 06 2008 - 16:05:47 CST
