Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Applying Clean Code Principles in Python

via CodeSignal

Overview

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.

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

Reviews

Start your review of Applying Clean Code Principles in Python

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.