[DUG] unit source code size

Colin Johnsun colin.adug at gmail.com
Mon Jul 5 17:14:12 NZST 2010


Hi Leigh,

On 5 July 2010 14:54, Leigh Wanstead <leighw at softtech.co.nz> wrote:
> Hi Colin,
>
> I am constantly refactoring code, but sometimes the form unit just grows bigger and bigger.
>
> Regards
> Leigh
> -----Original Message-----

The amount of code shouldn't bother you. What matters is that the code
is in manageable and maintainable chunks.

If your form unit is growing then you definitely have a problem of
embedding your business code with your UI code.

This article isn't strictly about Delphi but it was an inspiration for
me with regards to not junking my forms with "business" code. Its
simplistic but the idea behind it is good.

The Humble Dialog box
www.objectmentor.com/resources/articles/TheHumbleDialogBox.pdf

Cheers,
Colin


More information about the Delphi mailing list