I Cut My Code in Half After Adding Just One Virtual Method
Learn more at Brilliant https://brilliant.org/ZoranHorvat/ This link gives you a 30-day free trial and 20% off of an annual premium subscription. Witness firsthand how introducing polymorphic methods into a previously anemic domain model can drastically reduce code complexity, turning a convoluted 20-line method into a clean, single expression. Does that sound like magic? Then, let it be! In this demonstration, we shall implement the same feature twice: Once before, and then again after introducing a single virtual method. You will learn how a well-placed abstraction, no matter how simple it is, can lead to removing a ton of previous code. Watch the entire series: 1. Fat services layer • This Is How the Anemic Domain Model Turns Bad 2. Combinatorial explosion of methods • The Combinatorial Explosion Trap: Does You... 3. Eliminating data clumps • Eliminate Data Clumps: Step-by-Step Refact... 4. Adding polymorphism • I Cut My Code in Half After Adding Just On... 5. Make Your Object Model More Object-Oriented • Make Your Object Model More Object-Oriented 6. How Far is Your Object-Oriented Code From Functional Programming? • How Far is Your Object-Oriented Code From ... Download source code ► / zoranhorvat Enroll course Beginning Object-Oriented Programming with C# ► https://codinghelmet.com/go/beginning... Join Discord server with topics on C# ► https://codinghelmet.com/go/discord Subscribe ► / @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.❤️ ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬ ⚡️COPYRIGHT 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.

Eliminate Data Clumps: Step-by-Step Refactoring Guide

Claude Code Is Resurrecting Our Worst Nightmares

The Only Time You Should Use Polymorphism

How Netflix Uses Java - 2026 Edition

Trump Ruins NBA Finals Vibes, Crashes Out on Meet the Press After CA Election Lies: A Closer Look

Nullability in C#: The Story Never Ends

Coding Style vs EF Core & Dapper: Pick a Side

Boolean Is Not Your Friend

Trump Attends NBA Finals, Cries Election Fraud in California & Storms Out of Interview

Knicks Fans Brand Elmo a Traitor & Trump Storms Out of "Meet the Press" Interview | The Daily Show

5 Sure Signs You're No Longer Junior Programmer

Palantir. IT’S WORSE Than You Think

This New Feature Gives Superpower to C# Record Types

How to Avoid Null Reference Exceptions: Optional Objects in C#

Return Value Optimization and Copy Elision in C++

The Right Way To Return API Errors in .NET

"Something Wicked This Way Comes" — Why The AI Bubble Isn't What You Think

Refactor AI Slop Into Proper Types

Turing Award Winner: Data Abstraction, Dijkstra, Distributed Systems | Barbara Liskov

