Favor Declarative Design and Cure That Code Clutter

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

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

  • @Silky987
    @Silky987 Год назад +6

    I cracked up at the comment along with your facial expression, "bringing fresh requirements straight from hell." That's gold Mr. Horvat, pure gold.

  • @baranacikgoz
    @baranacikgoz Год назад +25

    You are programming in another level. I am having difficulties to understand your code at first watch, watching again and "AHA, WOOOWW YES THIS WAY IS BETTER". Thank you for improving my vision and the way of thinking

    • @zoran-horvat
      @zoran-horvat  Год назад +2

      This concept is not easy to understand, but once you see through it - you never look back.

  • @vedrantrebovic7674
    @vedrantrebovic7674 Год назад +15

    David Attenborough of software development.

    • @zoran-horvat
      @zoran-horvat  Год назад +4

      I like this one.

    • @ryan-heath
      @ryan-heath Год назад +4

      "In the vast ecosystem of programming paradigms, we find declarative programming, a truly fascinating specimen. Unlike its imperative counterpart, which instructs a computer on how to perform a task step by step, declarative programming eloquently expresses what should be accomplished without specifying the exact process. It's a language that allows developers to focus on the "what" rather than the "how," akin to a bird's mesmerizing display of colorful plumage in courtship. Declarative programming can simplify complex tasks, making it a remarkable adaptation for tackling a variety of challenges in the coding wilderness."
      - Zoran GPT Attenborough

    • @zoran-horvat
      @zoran-horvat  Год назад

      @@ryan-heath How did you get this text?

    • @ryan-heath
      @ryan-heath Год назад +2

      @@zoran-horvat I asked ChatGPT: say something of declaritive programming in the style of David Attenborough 😎

    • @zoran-horvat
      @zoran-horvat  Год назад +1

      @@ryan-heath This sounds great, I want to make a video with that!

  • @fifty-plus
    @fifty-plus Год назад

    Anyone would think you had a good grasp on SOLID principles. Nice one.

  • @austin.valentine
    @austin.valentine 4 месяца назад

    I think it is challenging because there are several other things going on that aren’t mentioned. For one thing, it is clear he is using decorator pattern for discounts to easily manage stacking them on top of one another, which makes sense. How about a video on that and how would you implement a check for mutually exclusive discounts that can’t be stacked together? How would choose which to applies?

  • @zoran-horvat
    @zoran-horvat  Год назад +5

    Download the source code for this video: www.patreon.com/posts/source-code-for-92189724
    Learn more from the video course *Beginning Object-Oriented Programming with C#* ► codinghelmet.com/go/beginning-oop-with-csharp
    Avoid Returning Null From Methods - There Is a Better Way To Write Them! ► ruclips.net/video/HRLdcMil7Ec/видео.html
    Clean Code Tip: Favor Method Chaining Over Nested Calls ► ruclips.net/video/zWn0O0xzWMA/видео.html
    Manage Null References Like a Boss and Never Fail! ► ruclips.net/video/mLTD8DECCVQ/видео.html

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

    It's a brilliant video! Thank you, Zoran!

  • @WolfieVenturi
    @WolfieVenturi Год назад +3

    This will require a few more watches from me before it sinks it, but I'm almost certain I will be glad when I do. Thanks for the video!

    • @zoran-horvat
      @zoran-horvat  Год назад

      Possibly yes, but don't give up. It takes some time to get used to thinking in terms of abstractions and letting other objects decide on how they should implement their promises.

  • @Ogg_Vorbis
    @Ogg_Vorbis Год назад +2

    Love the way you say things (and most of the things you say 😅)

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

    I am just a junior with 3 years experience. I dont see it.
    Do you have another easier example or point me in correct direction with a link to read ❤

    • @zoran-horvat
      @zoran-horvat  Год назад +4

      I'll think of it. Maybe I might return to this topic later, with an easier example. This one is admittedly advanced.

    • @5cover
      @5cover Год назад

      @@zoran-horvat Totally. I had a hard time grasping the problem domain, even though it's your typical "bookstore app". I think it could be valuable to start with an example from scratch instead, as even though the problem domain would be tiny, it would able you to compare imperative and declarative design and see how the latter makes the code clearer.
      In this video viewers pretty much have to take your word for it.

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

    💯

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

    ❤❤❤❤❤❤❤

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

    ❤ 🙏 🌹