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 Scala

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: DRY (Don't Repeat Yourself) in Action
    • Applying the DRY Principle in Calculating Averages
    • Variable Extraction and PI Constant Refactoring in Circle Calculations
    • Replace Temp Variables with Query Methods in Scala
  • Unit 2: KISS (Keep It Simple, Stupid) Strategies
    • Refactor for Simplicity and Readability
    • Simplifying Leap Year Calculation
    • Simplify Palindrome Checker Using the KISS Principle
  • Unit 3: Law of Demeter: Limiting Object Interactions for Cleaner Code
    • Adhering to the Law of Demeter in a Library System
    • Refactoring for the Law of Demeter in a Food Delivery Service System
  • Unit 4: Understanding and Implementing SOLID Principles
    • Refactoring for Single Responsibility Principle in Scala
    • Open/Closed Principle Refactoring for Product Pricing
    • Implementing the Interface Segregation Principle in Scala
    • Implementing Dependency Inversion Principle with Printers in Scala

Reviews

Start your review of Applying Clean Code Principles in Scala

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.