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

CodeSignal

Using Sprout and Wrap Techniques

via CodeSignal

Overview

Sprout techniques involve creating new methods or classes to encapsulate additional functionality or refactored behavior. These techniques help to safely introduce changes while preserving existing behavior, minimizing risks, and improving testability. In this course we will use sprout techniques with methods and objects to refactor or expand capabilities.

Syllabus

  • Lesson 1: Sprout Method - Reducing Risk of Adding New Features
  • Lesson 2: Sprout Method - When a Method Does Too Much
  • Lesson 3: Wrap Method - Safely Adding New Behaviors
  • Lesson 4: Sprout Class - When Classes Do Too Much
  • Lesson 5: Sprout Class - When New Shouldn't Affect Old
  • Lesson 6: Wrap Class - Expanding Whole Class Behavior

Reviews

Start your review of Using Sprout and Wrap Techniques

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.