GithubHelp home page GithubHelp logo

gilded-rose's Introduction

Gilded Rose Kata in Python

For Informatics 3 @ Media Informatics HTW Berlin

This version of the Gilded Rose Kata is an excerpt compiled from Emily Bache's repo, prepared for usage within Info3 in the International Media Informatics Bachelor at HTW Berlin.

If you look for the Gilded Rose Kata in general, go to the version published by Emily Bache or Kata-Log for a more general version.

Instructions for the Kata

You will use this Kata to Practice Work on Legacy Code by

  1. Implementing Characterization Tests

and then implement the new feature using

  1. Refactoring to make the hard change easy and
  2. Implementing the Easy Change

Step by Step

  1. Implement Characterization Tests

    a. Read the Requirements

    b. Have a look at the current source code

    c. Create Closed Box Tests based on the Requirements (the specification)

    • if you find behaviour not compliant with the specification, mark the tests with xfail as in the example.

    d. Ensure that you've written 'enough' tests by checking the test coverage

  2. Refactor to make the hard change easy

    Now that you have a full test suite, you can confidently refactor the source code. Take a moment to consider which new design would make the change easy. Remember that there is one restriction though: You may not alter the Item class. Which GoF-Patterns would be useful?

  3. Implement the Easy Change

    This should be easy now!

    Did your new design allow for adding the new requirement by just adding new code, without changing existing code? (Open-Closed Principle)

gilded-rose's People

Contributors

bkleinen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.