Skip to content

refactoring-by-example/refactoringbyexample.com

Repository files navigation

refactoringbyexample.com

Practical refactoring examples

Refactoring is an important tool in any developer's toolbox. It's the key to turning bad code into clean code. Our mission is to showcase practical examples that help you master the art of refactoring.

All of our examples are adapted from code in real production applications. The problem domain may have been changed, but the structure of the code and the refactoring approach has not.

Visit refactoringbyexample.com 🌐

Contributing 📝

We welcome contributions. If you have a refactoring example to share, open a new issue and tell us a bit about your proposed post. If your proposal is accepted, write your post up in Markdown format in the _posts directory and submit it as a pull request.

Development 💻

The blog is generated using Jekyll and hosted using GitHub pages. The theme is adapted from Lanyon.

Install the dependencies using Bundler:

bundle install

Start a local Jekyll server:

bundle exec jekyll serve

You'll then be able to visit a local version of the blog at http://127.0.0.1:4000.