[fpc-devel] Interface delegation fix: backport to FPC 2.4.2 ...?
Graeme Geldenhuys
graemeg.lists at gmail.com
Thu May 20 09:25:55 CEST 2010
Matt Emson het geskryf:
>
> In my experience, often badly implemented and regularly abused.
Then whoever wrote that code you looked at has no clue what they were doing
and has a near zero understanding of design patterns or OOP.
> Patterns take extreme discipline.
On the contrary, design patterns are everywhere, and developers often use
some form of them without even knowing. In such cases it often only
requires some small form of code tuning to get a better design.
Simple example: Ever used TAction in Delphi or Lazarus? Yes? Well, then you
have been using the Command pattern (well some form of the Command
pattern). VCL actually has quite a few design patterns implemented. And to
reiterate an earlier point I made: design patterns are *not* a code
template, they are a design guideline for solving a common problem, and
each design may differ in implementation.
Regards,
- Graeme -
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/
More information about the fpc-devel
mailing list