Giter VIP home page Giter VIP logo

taskmanagerkata's Introduction

Task Manager kata

Goal: practice TDD and clean architecture by implementing a task manager

Specification

Each task is made of

  • A description
  • A number that identifies it
  • A status "done" or "to do"

The task manager must start an interaction loop where the user can enter some commands, like this:

  • + description> Add a task
  • - <id> Remove the task matching the given id
  • x <id> Set the status of the task matching the id to "done"
  • o <id> Set the status of the task matching the id to "to do"
  • q Exit the interaction loop

At each step, the task manager must show the list of tasks:

Here's an example of using the task manager:

No task yet
>>> + Learn Python
1 [ ] Learn Python
>>> + Learn TDD
1 [ ] Learn Python
2 [ ] Learn TDD
>>> x 1
1 [x] Learn Python
2 [ ] Learn TDD
>>> q
Bye!

Instructions

  • Follow the TDD rules as close as possible to implement the above specifications.

  • Note: you can assume the user only enters valid inputs.

  • Use an iterative process - going through the following steps, in order:

  1. Parse user input (+, -, x, o)
  2. Update the task list
  3. Display the tasks
  4. Run the interaction loop
  • Feel free to use source control and make a commit at the end of each refactor phase.

Notes

  • The task list does not need to be persistent - it's OK if the task manager always starts empty

taskmanagerkata's People

Contributors

dmerejkowsky avatar

Watchers

 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.