01-20-2023 05:17 PM
Here's my presentation OOP Decorators
01-20-2023 05:34 PM
The best resource on the various GOF patterns for non-CS majors (ie most of us) is here: https://refactoring.guru/design-patterns There's a bunch of web stuff there and there is also an e-book. It doesn't come with LabVIEW Examples but does come with examples in 7 other languages including Python.
Speaking of examples of GOF in LabVIEW.
Here is what Tom and I put together.
https://gitlab.com/gof-in-labview
There is a decorator example there along with some others.
Not to steal Ben's thunder, but Tom and I did a presentation at GLA Summit one year. We covered Decorator and a few other patterns. Sometimes hearing multiple different explanations and examples helps so if you really want to figure out, this will be helpful.
https://www.youtube.com/watch?v=IM8ZU1af6wQ
01-20-2023 06:23 PM
I should add Bill Welch also helped us on the GOF stuff.
And also that refactoring.guru site also has a lot of info on refactoring as well including a course (I bought it, but haven't went through it yet). I believe most of it is based off of Fowler's book.
01-21-2023 12:10 PM
Another good resource for OOP design patterns is this post from Elijah Kerry. It has labview examples for a number of the GOF patterns.