Apply essential clean code principles, such as DRY, KISS, Law of Demeter, and SOLID, in PHP. This course reinforces best practices through practical implementation and real-world examples, solving industry-related challenges.
Overview
Syllabus
- Unit 1: Applying DRY Principles in PHP Code
- Refactor Code to Follow DRY Principle by Extracting Methods
- Variable Extraction and Code Maintainability in PHP
- Replace Temp with Query in PHP for Customer Eligibility Checks
- Unit 2: Applying the KISS Principle in PHP Code
- Refactoring for Simplicity with the KISS Principle in PHP
- Simplify Leap Year Evaluation Using the KISS Principle
- Simplifying a Palindrome Checker in PHP
- Unit 3: Applying the Law of Demeter in PHP Code
- Law of Demeter: Improving Object Interactions in a Library System
- Refactoring Delivery Service for Encapsulation Compliance
- Unit 4: Applying SOLID Principles in PHP Code
- Refactoring for Single Responsibility Principle in PHP
- Redesign Code for Open/Closed Principle Compliance
- Implementing Interface Segregation in PHP
- Implementing the Dependency Inversion Principle in PHP