Lazarus

Free Pascal => General => Topic started by: Raul_ES on April 20, 2021, 12:07:04 am

Title: Design Patterns in Pascal
Post by: Raul_ES on April 20, 2021, 12:07:04 am
Hi,

I just want to share with you a page where you can find many design patterns written in Delphi, if you may be  interested:

github.com/jimmckeeth/DelphiPatterns (http://github.com/jimmckeeth/DelphiPatterns)

regards,
Title: Re: Design Patterns in Pascal
Post by: balazsszekely on April 20, 2021, 07:00:15 am
@Raul_ES
Quote
I just want to share with you a page where you can find many design patterns written in Delphi, if you may be  interested:
github.com/jimmckeeth/DelphiPatterns
Thanks for sharing. Isn't Jim McKeeth a delphi evangelist?
On a side note, design patterns are useful things, but people sometimes go overboard. I saw this before on job interviews, if you don't know what a singleton is they will shot you instantly without any further questions :). Therefore design patterns are abused and overused.
Title: Re: Design Patterns in Pascal
Post by: Thaddy on April 20, 2021, 08:57:13 am
There are way more Pascal implementations of The Gang Of Four design patterns available.
And yes, he is currently a Delphi Evangelist.
He is a long time Delphi user, but I don't know if he was the above  already 5 years ago. (repository dates)

Delphi 7 already came with GoF in some editions
Title: Re: Design Patterns in Pascal
Post by: balazsszekely on April 20, 2021, 09:33:05 am
@Thaddy
Quote
There are way more Pascal implementations of The Gang Of Four design patterns available.
Yeah, the gang of four, I almost forgot. :) The design pattern bible for some programmers.
Title: Re: Design Patterns in Pascal
Post by: Raul_ES on April 21, 2021, 09:12:23 pm
GoF was the mandatory reading in the design patterns course at faculty. IMHO it was hard to read...
Title: Re: Design Patterns in Pascal
Post by: Raul_ES on April 21, 2021, 09:13:38 pm
Here you will find more examples, not only in Pascal. There's also general info about patterns, anti-patterns, etc

https://sourcemaking.com/ (https://sourcemaking.com/)
Title: Re: Design Patterns in Pascal
Post by: Thaddy on April 21, 2021, 09:59:44 pm
A design pattern is language agnostic. That can be hard to read if you keep the perspective of a language. It is science, philosophy. It is also essential, if you agree with the patterns or not.
TinyPortal © 2005-2018