Apply essential clean code principles, such as DRY, KISS, Law of Demeter, and SOLID. This course helps reinforce best practices through practical implementation and real-world examples.
Overview
Syllabus
- Unit 1: Understanding and Implementing the DRY Principle in C#
- Refactor Code to Use the DRY Principle by Extracting Methods
- Variable Extraction for PI in Circle Calculations
- Replace Temp with Query Refactoring Exercise
- Unit 2: Applying Clean Code Principles: Keeping It Simple, Stupid
- Applying KISS Principle to Simplify Order Cost Calculation Code
- Simplifying Leap Year Logic
- Refactoring Palindrome Checker to Apply KISS Principle
- Unit 3: Applying the Law of Demeter in C#: Creating Maintainable and Modular Code
- Refactoring for the Law of Demeter in a Library System
- Refactoring a Food Delivery Service System to Follow the Law of Demeter
- Unit 4: Applying SOLID Principles in C#
- Refactoring with Single Responsibility Principle in a University System
- Refactoring for the Open/Closed Principle
- Implementing Interface Segregation Principle in C#
- Implementing Dependency Inversion in a Printer System