Apply essential clean code principles, such as DRY, KISS, Law of Demeter, and SOLID in Go (GoLang). This course helps reinforce best practices through practical implementation and real-world examples.
Overview
Syllabus
- Unit 1: Applying Clean Code Principles: DRY with Go
- Refactor Repeated Logic to Use a Helper Function
- Variable Extraction and DRY Principle in Go
- Replace Temporary Variables with Query Methods in Go
- Unit 2: Applying Clean Code Principles: KISS with Go
- Applying the KISS Principle to Simplify Code in Go
- Simplify Leap Year Calculation Using KISS Principle
- Simplifying a Palindrome Checker in Go
- Unit 3: Applying Clean Code Principles: Reducing Interdependencies with Go
- Refactor Code to Follow the Law of Demeter
- Refactor Code to Adhere to Law of Demeter in a Food Delivery System
- Unit 4: Applying SOLID Principles with Go
- Refactor Course Management to Follow Single Responsibility Principle
- Refactoring for Open/Closed Principle in Go
- Refactoring Interfaces for Better Vehicle Functionality
- Dependency Inversion Principle with Printers in Go