refactoring-examples

Examples of medium-scale refactorings

Stars
6

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.