https://github.com/simonneutert/gilded_rose_kata
Refactor like a Boss (Refactor like Sandi Metz)
https://github.com/simonneutert/gilded_rose_kata
minitest refactoring ruby tdd-kata test-driven-development tutorial tutorial-code
Last synced: over 1 year ago
JSON representation
Refactor like a Boss (Refactor like Sandi Metz)
- Host: GitHub
- URL: https://github.com/simonneutert/gilded_rose_kata
- Owner: simonneutert
- License: mit
- Created: 2018-02-09T22:36:23.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-02-01T19:17:25.000Z (over 1 year ago)
- Last Synced: 2025-02-01T20:24:36.471Z (over 1 year ago)
- Topics: minitest, refactoring, ruby, tdd-kata, test-driven-development, tutorial, tutorial-code
- Language: Ruby
- Homepage: https://www.youtube.com/watch?v=8bZh5LMaSmE
- Size: 8.79 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Refactor like a Boss!
__[Sandi Metz](https://www.sandimetz.com) is well-known in Rubyland and beyond.__
> This is not the best code in the world, this is just a tribute.
\- Tenacious D.
Sandi's inspiring talk at [RailsConf 2014 - All the Little Things by Sandi Metz](https://www.youtube.com/watch?v=8bZh5LMaSmE) is the reason why this repository exists.
I wanted to understand, so I rewrote code from her talk and reverse engineered most of the tests you will see here. So, there is a chance, that the genuine code of the talk is already out there somewhere and I just didn't find it 😓 Nevertheless writing this down has taught me a lot.
I propose you watch her [presentation](https://www.youtube.com/watch?v=8bZh5LMaSmE) and then come back to this repository and see for yourself - step by step.
__It is time to learn how to refactor and keep your sanity!__ :wink:
#### What you will learn:
* test-driven development (for absolute beginners)
* what an Object Factory can look like
* How Inheritance works
## How to work with this code
All steps Sandi takes saved and ordered in directories of this repository.
The code is sprinkled with comments along the way.
Fire up your terminal, clone the repository, `cd` into one of the directories and run the tests yourself:
`$ ruby -Itest gilded_rose_test.rb`
The directory `07_extending` will work for sure.
## Contributors / Pull Requests are welcome :octocat: