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.

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to