The State Pattern

Поделиться
HTML-код
  • Опубликовано: 9 фев 2025

Комментарии • 15

  • @tarnkappencola1302
    @tarnkappencola1302 5 месяцев назад +2

    Best explanation of State pattern ever! Thank you 😊

  • @olegsuprun7590
    @olegsuprun7590 4 года назад +4

    This is one of the best explanation and demonstration of the state pattern i have ever seen.

  • @CodingTutorialsAreGo
    @CodingTutorialsAreGo  4 года назад +1

    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: ruclips.net/channel/UCqWQzlUDdllnLmtgfSgYTCA

  • @tobitoj
    @tobitoj 5 месяцев назад

    Please, can you share with us the first code for "Statefull" implementation?
    Thanks for the video.

  • @MichaelJNunez06
    @MichaelJNunez06 Год назад +1

    Why you didn't explain all other design patterns of Gang Of Four???

  • @jgsk78
    @jgsk78 2 года назад +2

    amazing stuff, many thanks!!!

  • @gbkEmilgbk
    @gbkEmilgbk 2 месяца назад

    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)

  • @aliali-pn1cb
    @aliali-pn1cb 2 года назад

    Iam from yemen can you met you online

  • @penneyworth
    @penneyworth 2 года назад +1

    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???

    • @CodingTutorialsAreGo
      @CodingTutorialsAreGo  2 года назад

      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.

    • @penneyworth
      @penneyworth 2 года назад +2

      @@CodingTutorialsAreGo Thanks! Yes, a video on indexers would be great.

    • @CodingTutorialsAreGo
      @CodingTutorialsAreGo  2 года назад +1

      Here you go: ruclips.net/video/wvDAGpYtdv4/видео.html

    • @penneyworth
      @penneyworth 2 года назад +2

      Deeply appreciated!