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

CodeSignal

Clean Code with Multiple Classes in Ruby

via CodeSignal

Overview

Explore principles for maintaining clean code with multiple classes in Ruby. Learn about class collaboration, duck typing, managing dependencies, practicing polymorphism, and handling exceptions across classes.

Syllabus

  • Unit 1: Clean Code with Multiple Classes in Ruby
    • Refactoring Feature Envy in Ruby Classes
    • Refactoring Message Chains in Ruby
    • Middle Man Code Smell Refactoring Task
  • Unit 2: Avoiding Common Design Pitfalls in Object-Oriented Programming
    • Refactoring a Class to Avoid Fluent Interfaces
    • Refactor Inheritance to Composition in Employee Tax Data
  • Unit 3: Dependency Management between Classes in Ruby
    • Dependency Injection in Ruby Classes
    • Implementing the Factory Pattern in Ruby
  • Unit 4: Introduction to Exception Handling in Ruby
    • Exception Handling in Banking Transactions via Custom Exceptions
    • Refactoring Library System with Exception Handling in Ruby

Reviews

Start your review of Clean Code with Multiple Classes in Ruby

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.