The State Pattern

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ธ.ค. 2024

ความคิดเห็น • 15

  • @tarnkappencola1302
    @tarnkappencola1302 3 หลายเดือนก่อน +2

    Best explanation of State pattern ever! Thank you 😊

  • @olegsuprun7590
    @olegsuprun7590 3 ปีที่แล้ว +4

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

  • @jgsk78
    @jgsk78 2 ปีที่แล้ว +2

    amazing stuff, many thanks!!!

  • @tobitoj
    @tobitoj 3 หลายเดือนก่อน

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

  • @gbkEmilgbk
    @gbkEmilgbk 19 วันที่ผ่านมา

    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)

  • @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: th-cam.com/channels/qWQzlUDdllnLmtgfSgYTCA.html

  • @aliali-pn1cb
    @aliali-pn1cb ปีที่แล้ว

    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: th-cam.com/video/wvDAGpYtdv4/w-d-xo.html

    • @penneyworth
      @penneyworth 2 ปีที่แล้ว +2

      Deeply appreciated!