Skip to content

Instantly share code, notes, and snippets.

@trikitrok
Created March 14, 2025 10:02
Show Gist options
  • Save trikitrok/dfab2b265f8790e5d7d1f4364d42f12a to your computer and use it in GitHub Desktop.
Save trikitrok/dfab2b265f8790e5d7d1f4364d42f12a to your computer and use it in GitHub Desktop.
Sprout class

Sprout class.

How to do it:

  1. Identify the change point and determine the sprouted class interface.

    • Pass to the sprouted class’s constructor any source method’s local variables it needs as parameters.

    • Determine whether the sprouted class’ method will need to return values to the source method.

  2. Develop the sprouted class with tests.

  3. Instance the sprout class and call its method from the source method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment