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: Applying the DRY Principle in Python
- Refactoring to Apply the DRY Principle in Python
- Refactoring Constants for Code Maintainability
- Replace Temp with Query for Customer Eligibility Checks
- Unit 2: Applying the KISS Principle in Python
- Applying KISS Principle to Simplify Order Cost Calculation
- Simplifying Leap Year Logic Using KISS Principle
- Refactoring a Palindrome Checker with KISS Principle
- Unit 3: Applying the Law of Demeter in Python
- Refactoring for the Law of Demeter in a Library System
- Refactoring for the Law of Demeter in a Delivery Service
- Adhering to the Law of Demeter in a Library System
- Unit 4: Applying SOLID Principles in Python
- Refactoring Code to Adhere to the Single Responsibility Principle
- Refactoring for the Open/Closed Principle in Python
- Implementing the Interface Segregation Principle in Python
- Implementing Dependency Inversion Principle in a Printer System
- Refactoring for Single Responsibility Principle in a University System