An open API service indexing awesome lists of open source software.

https://github.com/tomphp/untangled-conditionals-kata

Refactoring coding kata
https://github.com/tomphp/untangled-conditionals-kata

exercise kata refactoring

Last synced: 3 months ago
JSON representation

Refactoring coding kata

Awesome Lists containing this project

README

          

# Untangled Conditionals Kata

[![Build Status](https://travis-ci.org/tomphp/untangled-conditionals-kata.svg?branch=master)](https://travis-ci.org/tomphp/untangled-conditionals-kata)

This repository contains a simple coding kata.

Category: **refactoring** \
Skill Level: **beginner** \
Time: **~30 minutes**

This repository contains the starting code.
The logic is contained in a single method, `Pipeline.run()`.
This method contains a number of embedded `if` statements.
Your goal is to refactor the code to a more understandable and desirable state.

Remember, keep the tests passing while you refactor!

## Approach

Below you can find some resources demonstrating the approach that this kata was designed to teach.
However, I recommend you try the kata yourself first, and then review the resources.

* Blog Post: [Refactoring — Untangling Conditionals](https://cloudnative.ly/refactoring-untangling-conditionals-cc5693b8ec3c).
* Video: [![Untangled Conditionals Kata](https://img.youtube.com/vi/NWgY-0Qu4S4/0.jpg)](http://www.youtube.com/watch?v=NWgY-0Qu4S4)