Gang-of-Four Design Patterns in MATLAB
52 views (last 30 days)
In the context of my master thesis at FCT NOVA, titled "Assessing MATLAB's OO features through the GoF patterns", I intend to implement a full collection of the Gang-of-Four design patterns in MATLAB, based on two existing Java collections of these patterns.
I wonder though if a full or partial MATLAB collection of this nature was already implemented in the past. It would be helpful to know that was the case. This far, I have found among several websites such as this one, some old posts about single implementations of patterns, namely Singleton, Iterator, Observer and Strategy.
I will use a Github repository to share my implementations: https://github.com/amTorrinha/GoF-design-patterns-matlab.
Any help or recommendations would be appreciated.
 Gamma, E., Helm, R., Johnson, R. and Vlissides, J. Design Patterns : Elements of Reusable Object-Oriented Software. Boston: Addison-Wesley, 1995.
 Bobby Nedelkovski (2021). Design Pattern: Singleton (Creational) (https://www.mathworks.com/matlabcentral/fileexchange/24911-design-pattern-singleton-creational), MATLAB Central File Exchange. Retrieved June 17, 2021.
 Bobby Nedelkovski (2021). Design Pattern: Iterator (Behavioural) (https://www.mathworks.com/matlabcentral/fileexchange/25225-design-pattern-iterator-behavioural), MATLAB Central File Exchange. Retrieved June 17, 2021.
 Arne Jenssen (2021). Observer pattern (https://www.mathworks.com/matlabcentral/fileexchange/17843-observer-pattern), MATLAB Central File Exchange. Retrieved June 17, 2021.
 Paul Williamson (2021). Strategy Design Pattern in Matlab 2008b (https://www.mathworks.com/matlabcentral/fileexchange/22193-strategy-design-pattern-in-matlab-2008b), MATLAB Central File Exchange. Retrieved June 17, 2021.
per isakson on 26 Jul 2021
I'm not aware of any "full or partial MATLAB collection" and I've search for it more than once.
Googling for "design patterns python book" returns a numbers of books with "design patterns" in the title. "design patterns matlab book" returns next to nothing.
Not all GOF-patterns are relevant in Matlab, see Design Patterns in Dynamic Programming by Peter Norvig. (This is a set of slides - without text.)