Stephanevg / PSClassUtils

A set of utilities to work with Powershell Classes
http://powershelldistrict.com/how-to-generate-a-uml-diagram-using-powershell/
92 stars 23 forks source link

[R] Implementing the Command pattern #83

Open Stephanevg opened 5 years ago

Stephanevg commented 5 years ago

Analyze if we could simplify how we generate the command to Out-PSGraph using the Command Pattern

For the ones that are unfamiliar with the pattern, I recommend watching these videos:

-> https://www.youtube.com/watch?v=7Pj5kAhVBlg

This one is a bit longer, but also very good. -> https://www.youtube.com/watch?v=9qA5kw8dcSU

Ideally I would like to discuss the design of a possible solution. Please send UML (ish) diagrams via photo or so.

Stephanevg commented 5 years ago

I know, this is not the most beautifullest piece of art, but this is a start:

image

I am not 100% happy with this design, but It is a start to reflect / think on.

Stephanevg commented 5 years ago

Basically, we have: