Examples of medium-scale refactorings
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Examples for a possible refactoring workshop in the style of code retreats.

Each example is in its own directory. The README file there gives a language-agnostic explanation of the problem to be solved and how to solve it. There's one nested subdirectory for each codebase. A README file therein gives language-specific explanations of the code.

  • split-into-two: Split one class into two because you need two instances of part of its responsibility. Ruby.