Design Patterns for Delphi 2009

I am looking for design patterns (GOF, but others are also welcome) for Delphi 2009 .

There are some very nice and classic articles about Design Patterns in Delphi:

In addition, the new Delphi has some design patterns built into the IDE through a model view.

However, none of them seem to use the new features offered by Delphi, such as generics and anonymous methods . There are C # examples that use generics and anonymous methods, but they cannot really be translated 1: 1 in Delphi, and I would like to get some advice from people who have practical experience with these specific functions in Delphi.

Is there any example available online or in a book, or can someone provide some useful examples or tips, perhaps?

+6
design-patterns delphi delphi-2009
source share
2 answers

I have a pretty simple Generic Factory example that uses anonymous methods here

+4
source share

GOF templates are the same for any object oriented language. Delphi 2009 is no exception. The functions of generics and anonymous methods are just syntactic sugar to make our life easier. Therefore, if you read the original book of GOF design templates, you can easily apply its concepts to Delphi 2009 and all your previous versions (even some Turbo Pascal).

+1
source share

All Articles