What abot circular-references (states use Pelican class, Pelican class use states...) (maybe it is not the case in C#, but, for instance, in typescript)
Which design pattern would you like to find out more about? Do let me know. Download the source code at github.com/JasperKent/The-State-Pattern And for the next installment, subscribe at: th-cam.com/channels/qWQzlUDdllnLmtgfSgYTCA.html
What on earth is this syntax: public Light this[PelicanLights li] Is this a function? And this: Pelican[PelicanLights.Wait].State = LightState.On; What is going on???
The first one is the declaration of an indexer with an enum, rather than an int, as the index. The second is simply calling the indexer. It may be worth me doing a video on this.
Best explanation of State pattern ever! Thank you 😊
This is one of the best explanation and demonstration of the state pattern i have ever seen.
Cheers!
amazing stuff, many thanks!!!
Please, can you share with us the first code for "Statefull" implementation?
Thanks for the video.
Why you didn't explain all other design patterns of Gang Of Four???
I may get round to it.
What abot circular-references (states use Pelican class, Pelican class use states...) (maybe it is not the case in C#, but, for instance, in typescript)
Which design pattern would you like to find out more about? Do let me know.
Download the source code at github.com/JasperKent/The-State-Pattern
And for the next installment, subscribe at: th-cam.com/channels/qWQzlUDdllnLmtgfSgYTCA.html
Iam from yemen can you met you online
What on earth is this syntax:
public Light this[PelicanLights li]
Is this a function?
And this:
Pelican[PelicanLights.Wait].State = LightState.On;
What is going on???
The first one is the declaration of an indexer with an enum, rather than an int, as the index. The second is simply calling the indexer. It may be worth me doing a video on this.
@@CodingTutorialsAreGo Thanks! Yes, a video on indexers would be great.
Here you go: th-cam.com/video/wvDAGpYtdv4/w-d-xo.html
Deeply appreciated!