/timespan-kata

A kata for pretty-printing timespans

Primary LanguageJavaScript

Timespan Coding Kata

Summary

The goal is to implement a utility function that 'pretty-prints' timespans. For example, 3620 seconds become "1 hour, 20 seconds ago". Such a function greatly enhances UX by providing the user a readable timespan without bothering it with details.

Suggestions

  • Use a unit testing library

  • Use git and work in baby-steps

  • Commit often

  • Don't read or work ahead!

  • Notes for Facilitators

Increments

Part 1 - Simple pretty-printing

  1. Task 1.1
  2. Task 1.2
  3. Task 1.3

Part 2 - For brevity!

  1. Task 2.1
  2. Task 2.2
  3. Task 2.3

Part 3 - Lossy algorithm

  1. Task 3.1
  2. Task 3.2
  3. Task 3.3