У нас вы можете посмотреть бесплатно Avoid Returning Null From Methods – There Is a Better Way To Write Them! или скачать в максимальном доступном качестве, которое было загружено на ютуб. Для скачивания выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Download the source code: / source-code-for-88052099 We've all been there: You design a slick C# method, but then it might need to return... null. How many times have you crafted a method, sometimes a complex one, only to encounter the inevitable predicament of possibly returning null? The ripples from this single decision can create waves in your code. Suddenly, there's a surge in downstream complexity. Pesky null checks, null propagation, and null coalescing start popping up everywhere and before you know it, you're deep-diving into a sea of operators, attempting to keep your code stable. The once crisp and clean code begins to resemble a tangled web. And readability? Well, it is long gone already! But what if we could turn the tables and say that every method you design must always return an object, a meaningful one? This isn't just about avoiding the null trap; it's about transforming the way you think about and design methods in C#. In this video, we will dissect a piece of realistic demo code to showcase how you can improve the domain model, making it not just resilient but also expressive. The secret is in removing a nullable return from a method! The consumers will need not wrestle with potential nulls is over. The calling code will suddenly attain simplicity, clarity, and elegance and - why not say? - only the happy path will remain! Thank you so much for watching! Please like, comment & share this video as it helps me a ton!! Don't forget to subscribe to my channel for more amazing videos and make sure to hit the bell icon to never miss any updates.🔥❤️ ✅🔔 Become a patron ► / zoranhorvat ✅🔔 Subscribe ► / @zoran-horvat ⭐ Learn more from video courses: Beginning Object-oriented Programming with C# ► https://codinghelmet.com/go/beginning... ⭐ Collections and Generics in C# ► https://codinghelmet.com/go/collectio... ⭐ Making Your C# Code More Object-oriented ► https://codinghelmet.com/go/making-yo... ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ ⭐ CONNECT WITH ME 📱👨 🌐Become a patron ► / zoranhorvat 🌐Buy me a Coffee ► https://ko-fi.com/zoranhorvat 🗳 Pluralsight Courses ► https://codinghelmet.com/go/pluralsight 📸 Udemy Courses ► https://codinghelmet.com/go/udemy 📸 Join me on Twitter ► / zoranh75 🌐 Read my Articles ► https://codinghelmet.com/articles 📸 Join me on LinkedIn ► / zoran-horvat ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ 👨 About Me 👨 Hi, I’m Zoran, I have more than 20 years of experience as a software developer, architect, team lead, and more. I have been programming in C# since its inception in the early 2000s. Since 2017 I have started publishing professional video courses at Pluralsight and Udemy and by this point, there are over 100 hours of the highest-quality videos you can watch on those platforms. On my YouTube channel, you can find shorter video forms focused on clarifying practical issues in coding, design, and architecture of .NET applications.❤️ ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ ⚡️RIGHT NOTICE: The Copyright Laws of the United States recognize a “fair use” of copyrighted content. Section 107 of the U.S. Copyright Act states: “Notwithstanding the provisions of sections 106 and 106A, the fair use of a copyrighted work, including such use by reproduction in copies or phono records or by any other means specified by that section, for purposes such as criticism, comment, news reporting, teaching (including multiple copies for classroom use), scholarship, or research, is not an infringement of copyright." This video and our youtube channel, in general, may contain certain copyrighted works that were not specifically authorized to be used by the copyright holder(s), but which we believe in good faith are protected by federal law and the Fair use doctrine for one or more of the reasons noted above. ⭐For copyright or any inquiries, please contact us at [email protected] #csharp #objectorientedprogramming #dotnet