On 2013-09-15 10:36, Graeme Geldenhuys wrote:
> class (and related unit) directly. This is called Dependency Injection -
> yet another software design pattern that removes hard-coded dependencies.


I forgot to mention, using Interfaces are also immensely useful in this
situation. Also makes it very easy to unit test such code.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/


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

Reply via email to