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 Clean Code Principles in Rust: Understanding and Implementing the DRY Principle
- Applying the DRY Principle with Function Extraction in Rust
- Refactor Circle Calculations with a Constant PI
- Replace Temp Variables with Query Functions in Rust
- Unit 2: Applying Clean Code Principles in Rust: Understanding the KISS Principle
- Refactoring for Simplicity Using KISS Principle in Rust
- Simplifying Leap Year Calculation in Rust
- Simplifying Palindrome Checker in Rust
- Unit 3: Applying Clean Code Principles in Rust: Reducing Dependencies with Ownership and Borrowing
- Reducing Dependencies with Ownership and Borrowing in a Notification System
- Refactoring a Job Processing System with Ownership and Encapsulation in Rust
- Unit 4: Applying Clean Code Principles in Rust: Understanding and Implementing SOLID Principles
- Refactoring for Single Responsibility Principle in Rust
- Implementing the Open/Closed Principle in Rust for Product Price Calculation
- Refactoring for Interface Segregation with Traits in Rust
- Implementing Dependency Inversion Principle in Rust