[Lazarus] Circular references
Florian Klaempfl
florian at freepascal.org
Fri Aug 14 10:38:15 CEST 2009
Graeme Geldenhuys schrieb:
> Michael Van Canneyt wrote:
>>>
>>> Have ever tried to write code in a similar fashion as Java does?
>>
>> No, because I write object pascal, not Java.
>
> OO design patterns & principles apply across programming languages. You
> do not need to code in Java to use the same idea.
>
> It's hard enough to implement well designed classes - and then having to
> fight the compiler too. One class (eg: TCustomer & TCustomerList) per
> unit is a clean design and help make unit testing so much easier.
Unit testing has nothing to do with pascal units and because a unit as a
namespace on it's own, it makes no sense to put only one or two classes
into one unit.
More information about the Lazarus
mailing list