Giter Club home page Giter Club logo

kata-ohce's Introduction

Ohce Kata

Covers Simplest TDD, basic design

Goal

A short and simple exercise to practice outside-in TDD using test doubles.

Problem Statement For Kata

Originally Posted At https://kata-log.rocks/ohce-kata

Your task

ohce is a console application that echoes the reverse of what you input through the console. Even though it seems a silly application, ohce knows a thing or two.

  • When you start oche, it greets you differently depending on the current time, but only in Spanish:
    • Between 20 and 6 hours, ohce will greet you saying: ¡Buenas noches < your name >!
    • Between 6 and 12 hours, ohce will greet you saying: ¡Buenos días < your name >!
    • Between 12 and 20 hours, ohce will greet you saying: ¡Buenas tardes < your name >!
  • When you introduce a palindrome, ohce likes it and after reverse-echoing it, it adds ¡Bonita palabra!
  • ohce knows when to stop, you just have to write Stop! and it'll answer Adios < your name > and end.

This is an example of using ohce during the morning

$ ohce Pedro
> ¡Buenos días Pedro!
$ hola
> aloh
$ oto
> oto
> ¡Bonita palabra!
$ stop
> pots
$ Stop!
> Adios Pedro

Selected Stack

  • Java 11
  • gradle (with gradle wrapper) as build tool
  • junit 5 as test framework

Understanding Solution

  • The Problem was solved using TDD and with the approach of just enough design at each stage
  • Go through Each commit One by one to understand how first failing tests were written
  • Each commit is one step of Red-Green-Refactor step

kata-ohce's People

Watchers

James Cloos avatar Atmaram Naik 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.