This Decorator Pattern Implementation Will Make Your Day!

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ม.ค. 2025

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

  • @zoran-horvat
    @zoran-horvat  ปีที่แล้ว

    Become a patron and get access to source code and exclusive live streams: www.patreon.com/posts/this-decorator-81381504

  • @KA-wf6rg
    @KA-wf6rg 2 ปีที่แล้ว +6

    I've learned so much from your videos over the years Zoran. Your videos on Pluralsight were some of the primary sources of me beginning to really grasp design patterns. And I've enjoyed the way you teach, you make it exciting!

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

    We cannot thank you enough for the wonderful videos and explanations!

  • @willcasey8262
    @willcasey8262 ปีที่แล้ว +1

    Great work Zoran , I loved the simplicity

  • @swapniltayade
    @swapniltayade ปีที่แล้ว +1

    I have seen your plural courses also, to make code readable you make use of extension method extensively.
    If you could compile separate course/video to teach technique to improve readability that would be awesome.
    5* for this video👍

  • @ievheniiierokhin1677
    @ievheniiierokhin1677 ปีที่แล้ว +1

    Really smart code!

  • @ghevisartor6242
    @ghevisartor6242 ปีที่แล้ว

    if you need to sort by another property in a comparison when the result is 0, is there a way to avoid the reverse comparer to reverse this second property too? like i want to sort by type and then the name. The type should get reverse but not the name.

  • @ivandrofly
    @ivandrofly ปีที่แล้ว

    This is very useful - thanks

  • @vbachris
    @vbachris ปีที่แล้ว

    have you considered practical f# libraries course? how to make f# libraries that can be used by c# front ends?

    • @zoran-horvat
      @zoran-horvat  ปีที่แล้ว +1

      Not really, but only because there is not enough audience compared to my C# content. I find F# to be a great language.

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

    Thanks Zoran. Are you planning on making a follow up to your Object Oriented C# course on Udemy?

    • @zoran-horvat
      @zoran-horvat  2 ปีที่แล้ว +5

      Yes, the next course is under way. It will take a few months to complete work before publication.

  • @santosh949
    @santosh949 2 ปีที่แล้ว

    Very energetic, thanks, i have a question
    Does decorator have to be always static

    • @zoran-horvat
      @zoran-horvat  2 ปีที่แล้ว +1

      I only made static factory for it, because the factory is stateless.
      The decorator itself is an instance, especially because it is wrapping another instance which it decorates - it is a stateful object.

  • @nickbarton3191
    @nickbarton3191 ปีที่แล้ว

    Has to watch this three times to catch the nuances.
    Never seen an extension method made by a factory before.
    Not thread safe ?

    • @zoran-horvat
      @zoran-horvat  ปีที่แล้ว +2

      It is a general rule that methods that apply to instances are not thread safe by design.
      If thread safety is a requirement, then it is implemented as an orthogonal concern, either on the instance, or some other synchronization target.

  • @deva8907
    @deva8907 2 ปีที่แล้ว

    Great video Mr.Zoran. Would like to know if your functional c# course in plural sight or it's equivalent course is available in udemy

    • @zoran-horvat
      @zoran-horvat  2 ปีที่แล้ว

      There will be no similar content published elsewhere, primarily due to copyright constraints.

  • @ivandrofly
    @ivandrofly ปีที่แล้ว

    Explain about prevent reverse 2x using decorator

  • @chh4516
    @chh4516 ปีที่แล้ว

    Hey Zoran, I love your video and enthusiasm so much. But as a Kotlin dev this code repulses me, because in Kotlin those 18 lines would just be half a line in a functional programming style.