Examples of medium-scale refactorings
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
split-into-two
.gitignore
README.md

README.md

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.