This Decorator Pattern Implementation Will Make Your Day!

Поділитися
Вставка
  • Опубліковано 16 гру 2024

КОМЕНТАРІ • 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

  • @ievheniiierokhin1677
    @ievheniiierokhin1677 Рік тому +1

    Really smart code!

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

  • @ivandrofly
    @ivandrofly Рік тому

    This is very useful - thanks

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

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

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

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

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

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