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 in Kotlin.
Overview
Syllabus
- Unit 1: Applying Clean Code Principles: Embracing DRY in Kotlin
- Applying DRY Principle with Function Extraction in Kotlin
- Extracting Constants to Apply the DRY Principle
- Replace Temp with Query in Kotlin
- Unit 2: Applying the KISS Principle in Kotlin
- Simplifying Order Cost Calculation Using KISS Principle
- Simplifying Leap Year Calculation
- Simplifying String Manipulations: Palindrome Checker
- Unit 3: Applying the Law of Demeter in Kotlin
- Improving Object Interactions in a Library System
- Refactoring Food Delivery Service to Follow the Law of Demeter
- Unit 4: Applying SOLID Principles in Kotlin
- Refactor Course Management System for Single Responsibility
- Open/Closed Principle Refactoring Exercise
- Refactoring Vehicle Interface Using Interface Segregation Principle
- Implementing Dependency Inversion in Kotlin