Computer Programming
Using Sprout and Wrap Techniques
Sprout and wrap techniques help safely add or modify functionality in existing code by introducing new methods, classes, or wrappers. These approaches minimize risk, preserve legacy behavior, and improve testability. This course covers both techniques for refactoring and expanding Scala code.
Scala
ScalaTest
6 lessons
27 practices
4 hours
Badge for Software Development Practices,
Software Development Practices
Course details
Sprout Method - Reducing Risk of Adding New Features
Sprouting a New Order Processing Method
Testing Order Processing with Surcharges
Testing Empty Orders with Surcharges
Testing Negative Surcharges with Parametrized Tests
Testing Order Processing with Surcharges
Meet Cosmo:
The smartest AI guide in the universe
Our built-in AI guide and tutor, Cosmo, prompts you with challenges that are built just for you and unblocks you when you get stuck.
Sign up
Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal