↓ Ir para o conteúdo principal

← todas as notas

📎 Webclip

Gilded Rose Refactoring Kata

The repository provides starting code for the Gilded Rose refactoring kata and suggests using the requirements file plus tests while refactoring in small steps. It also points to approval testing with TextTest and to translated requirements in several languages.

Reading notes
#

  • The simplest use is to clone the code and improve the design.
  • The requirements file explains what the code is for.
  • Tests are recommended to avoid breaking the code during refactoring.
  • You can write your own unit tests from the requirements.
  • A failing unit test is provided as a starting point for most languages.
  • Approval tests are also available in this repository.
  • The exercise is meant for deliberate practice in test design and refactoring.
  • The goal is not to rewrite the code from scratch.
  • The process should use small steps, frequent test runs, and incremental design improvements.
  • Most language versions include a TextTest fixture for approval testing.
  • The kata was originally created by Terry Hughes.
  • The current repository uses translated starting code and a slightly changed starting position.
  • One failing unit test was added to make it easier to begin writing tests.
  • The maintainer says the repository has had a high burden from mistaken pull requests.
  • Contribution and issue creation are restricted to prior contributors.