Skip to content

europcarmobilitygroup/finder_refactoring

Repository files navigation

How To Start

  1. Clone this repository git clone https://github.com/EuropcarMobilityGroup/finder-refactoring
  2. Build the docker container which contains all the required dependencies with make build
  3. Run the tests with make test
  4. Start refactoring!

The primary goal is to refactor the code in src/Algorithm/Finder.php - as it stands the code is incomprehensible.

Tips

  • Start with simple rename refactors, so you can better understand the abstractions you are working with. Rename any class or any variable.
  • Move on to extract methods and making the code more modular.
  • See if you can also eliminate switch statements and multiple exit points from methods.

Anything is fair game, create new classes, new methods, and rename tests. The only restriction is that the existing tests have to keep working. Lean on the tests and run them after every small change to make sure you are on the right path.

How to End

You can stop when you feel the code is good enough, something you can come back to in 6 months and understand.

Helpful resources

Refactoring

This kata is a Scala port of the original Incomprehensible Finder Refactoring Kata created by K. Scott Allen.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors