This Decorator Pattern Implementation Will Make Your Day!

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

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

  • @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

  • @ivandrofly
    @ivandrofly Год назад

    Explain about prevent reverse 2x using decorator

  • @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.

  • @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.

  • @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.

  • @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.

  • @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.