{"id":23235189,"url":"https://github.com/adimit/refactoring_2024_gilded_rose","last_synced_at":"2026-02-02T22:06:30.657Z","repository":{"id":268589504,"uuid":"904801582","full_name":"adimit/refactoring_2024_gilded_rose","owner":"adimit","description":"A copy of Emily Bache's Gidled Rose Kata for the Refactoring Lecture at FH Reutlingen","archived":false,"fork":false,"pushed_at":"2024-12-17T15:25:08.000Z","size":3529,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T02:43:29.717Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adimit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-17T15:23:28.000Z","updated_at":"2024-12-17T15:28:36.000Z","dependencies_parsed_at":"2024-12-17T18:35:52.033Z","dependency_job_id":null,"html_url":"https://github.com/adimit/refactoring_2024_gilded_rose","commit_stats":null,"previous_names":["adimit/refactoring_2024_gilded_rose"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adimit%2Frefactoring_2024_gilded_rose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adimit%2Frefactoring_2024_gilded_rose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adimit%2Frefactoring_2024_gilded_rose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adimit%2Frefactoring_2024_gilded_rose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adimit","download_url":"https://codeload.github.com/adimit/refactoring_2024_gilded_rose/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393570,"owners_count":20931813,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-19T03:19:37.136Z","updated_at":"2026-02-02T22:06:30.609Z","avatar_url":"https://github.com/adimit.png","language":"C++","funding_links":["https://www.patreon.com/EmilyBache)_"],"categories":[],"sub_categories":[],"readme":"_Support this and all my katas via [Patreon](https://www.patreon.com/EmilyBache)_\n\n# Gilded Rose Refactoring Kata\n\nYou can find out more about this exercise in my YouTube video [Why Developers LOVE The Gilded Rose Kata](https://youtu.be/Mt4XpGxigT4). I also have a video of a worked solution in Java - [Gilded Rose Kata, Hands-on](https://youtu.be/OdnV8hc9L7I)\n\nI use this kata as part of my work as a technical coach. I wrote a lot about the coaching method I use in this book [Technical Agile Coaching with the Samman method](https://leanpub.com/techagilecoach). A while back I wrote this article [\"Writing Good Tests for the Gilded Rose Kata\"](http://coding-is-like-cooking.info/2013/03/writing-good-tests-for-the-gilded-rose-kata/) about how you could use this kata in a [coding dojo](https://leanpub.com/codingdojohandbook).\n\n\n## How to use this Kata\n\nThe simplest way is to just clone the code and start hacking away improving the design. You'll want to look at the [\"Gilded Rose Requirements\"](https://github.com/emilybache/GildedRose-Refactoring-Kata/blob/main/GildedRoseRequirements.md) which explains what the code is for. I strongly advise you that you'll also need some tests if you want to make sure you don't break the code while you refactor.\n\nYou could write some unit tests yourself, using the requirements to identify suitable test cases. I've provided a failing unit test in a popular test framework as a starting point for most languages.\n\nAlternatively, use the Approval tests provided in this repository. (Read more about that in the section \"Text-based Approval Testing\").\n\nThe idea of the exercise is to do some deliberate practice, and improve your skills at designing test cases and refactoring. The idea is not to re-write the code from scratch, but rather to practice taking small steps, running the tests often, and incrementally improving the design. \n\n### Gilded Rose Requirements in other languages \n\n- [English](GildedRoseRequirements.md)\n- [Español](GildedRoseRequirements_es.md)\n- [Français](GildedRoseRequirements_fr.md)\n- [Italiano](GildedRoseRequirements_it.md)\n- [日本語](GildedRoseRequirements_jp.md)\n- [Português](GildedRoseRequirements_pt-BR.md)\n- [Русский](GildedRoseRequirements_ru.md)\n- [ไทย](GildedRoseRequirements_th.md)\n- [中文](GildedRoseRequirements_zh.txt)\n- [한국어](GildedRoseRequirements_kr.md)\n- [German](GildedRoseRequirements_de.md)\n- [Euskara](GildedRoseRequirements_eu.md)\n\n## Text-Based Approval Testing\n\nMost language versions of this code have a [TextTest](https://texttest.org) fixture for Approval testing. For information about this, see the [TextTests README](https://github.com/emilybache/GildedRose-Refactoring-Kata/tree/main/texttests)\n\n## History of the exercise\n\nThis Kata was originally created by Terry Hughes (http://twitter.com/TerryHughes). It is already on GitHub [here](https://github.com/NotMyself/GildedRose). Bobby Johnson described the kata in an article titled \"Refactor This: The Gilded Rose Kata\", but unfortunately it is no longer on the internet. I found it on the Wayback Machine [here](https://web.archive.org/web/20240525015111/https://iamnotmyself.com/refactor-this-the-gilded-rose-kata/).\n\nI translated the original C# into a few other languages, (with a little help from my friends!), and slightly changed the starting position. This means I've actually done a small amount of refactoring already compared with the original form of the kata, and made it easier to get going with writing tests by giving you one failing unit test to start with. I also added test fixtures for Text-Based approval testing with TextTest (see [the TextTests](https://github.com/emilybache/GildedRose-Refactoring-Kata/tree/main/texttests))\n\nAs Bobby Johnson points out in his article \"Why Most Solutions to Gilded Rose Miss The Bigger Picture\" (on the Wayback Machine [here](https://web.archive.org/web/20230530152324/https://iamnotmyself.com/why-most-solutions-to-gilded-rose-miss-the-bigger-picture/)), it'll actually give you\nbetter practice at handling a legacy code situation if you do this Kata in the original C#. However, I think this kata\nis also really useful for practicing writing good tests using different frameworks and approaches, and the small changes I've made help with that. I think it's also interesting to compare what the refactored code and tests look like in different programming languages.\n\n## Contributing\n\nContributions are encouraged! You could add a translations of the specification\nin another language or a new starting point for your favorite programming\nlanguage. Please see [CONTRIBUTING.md](./CONTRIBUTING.md) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadimit%2Frefactoring_2024_gilded_rose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadimit%2Frefactoring_2024_gilded_rose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadimit%2Frefactoring_2024_gilded_rose/lists"}