[Lazarus] Quick Modern Object Pascal Introduction, for Programmers
trayres at gmail.com
Thu Jun 23 01:25:25 CEST 2016
I don't understand the problem tiOPF is trying to solve well enough to
fully grok it in context - I've never used a database, only flat files. GUI
programming in an understandable way... clueless, it always devolves into
miserable, miserable spaghetti code.
That said, it's better spaghetti code than when I started with Lazarus, so
maybe eventually it'll be acceptable. Hah!
On Wed, Jun 22, 2016 at 2:21 PM, Graeme Geldenhuys <
mailinglists at geldenhuys.co.uk> wrote:
> On 2016-06-22 18:57, Travis Ayres wrote:
> > The Observer, MVVM,
> > Adapter patterns, whatever - it would be great to find more examples of
> > these.
> You mean like these... a series of articles I wrote about design
> patterns implemented in Object Pascal. ;-)
> As for MVVM, I had a different spin on MVP (Model-View-Presenter) and
> MVC (Model-View-Controller). Both MVP especially implements everything
> from scratch. Instead I implemented MGM (Model-GUI-Mediator) which is
> very similar to MVP in concept, except it reuses available widget events
> found in all modern GUI toolkit widgets. There is an article on MGM too,
> but that was kept simple for the sake of the article. For a much
> improved version of MGM, take a look at the code available as part of
> the tiOPF project (on SourceForge). The tiOPF implementation of MGM
> supports VCL, LCL, fpGUI and FMX (Delphi's Firemonkey) toolkits.
> Design Patterns are meant to be documented as an idea of how to
> solve a commonly found problem. It isn't meant to serve as a
> code template. So there can be many ways of implementing the
> same design pattern. eg: Most books and articles I've read
> implement the Visitor pattern in a very limited way. tiOPF
> implements it in a more generic way, and actually makes it even
> more flexible.
> The tiOPF project is what got me hooked on design patterns. That
> framework uses many different design patterns, and improved the
> quality of the framework tremendously.
> fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
> My public PGP key: http://tinyurl.com/graeme-pgp
> Lazarus mailing list
> Lazarus at lists.lazarus-ide.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Lazarus