Refactor This: The Gilded Rose Kata for .NET Core
Back in 2011, Terry Huges and I attended the Software Craftsmanship North America conference in Chicago. We came back excited about what we had learned and out of that excitement was born The Gilded Rose Kata.
It has been adapted to many different languages; Ruby, C++, go, python just to name a few. It was included in Emily Bache's amazing book The Coding Dojo Handbook. And many people have recorded screencasts of themselves solving the kata with different approaches. In a typical month I see at least one to two forks of my original repository. It is by far the most popular thing I have ever put up on GitHub.
My hope is that it will help a new generation of developers get up and running quickly writing C#. It is truly a great language that no longer requires Visual Studio or Windows.
- Install .NET Core SDK 1.0.
- Install Visual Studio Code, the Insiders Edition is highly recommended.
- Clone the repository:
git clone https://github.com/NotMyself/GildedRoseCore.git.
- Restore packages:
- Run Console Application:
- Run Unit Tests:
If you see output similar to the following screenshots, you are ready to start refactoring. Note: For windows users ensure you download the SDK, it is not the first link on the page.
Debugging in VSCode
The workspace comes preconfigured to debug the console application in VSCode. Simply, click the debug icon and then the play icon.
To debug a unit test, locate the
debug test link in the codelens display.