Git Product home page Git Product logo

tdd-study's Introduction

TDD-Study

Study with Test-Driven Development: By Example, Kent Beck

The rhythm of TDD

  1. Quickly add a test.
  2. Run all tests and verify that the new addition fails
  3. Make some changes to the code
  4. Run all tests and verify that all succeed
  5. Refactor to eliminate duplication

To-dos

  • $5 + 10CHF = $10(환율이 2:1인 경우)
  • $5 * 2 = $10
  • amount를 private으로 만들기
  • Dollar 부작용
  • Money 반올림
  • equals
  • 5CHF * 2 = 10CHF
  • hashCode()
  • Equal null
  • Equal object
  • 5CHF * 2 = 10CHF
  • Dollar/Franc 중복
  • 공용 equals
  • 공용 times
  • Franc과 Dollar 비교하기
  • 통화?
  • testFrancMultiplication 제거

Learned

  • all the kotlin files must be located in src directory
  • 어떻게 설계해야 할지 명백하지 않으면 가짜 구현을 하고 리팩토링하는 식으로 접근하라
  • 핵심이 되는 객체가 다른 부분에 대해서 될 수 있는 한 모르도록 노력한다. 그렇게 하면 핵심 객체가 가능한 오랫 동안 유연할 수 있다. (게다가 테스트하기에 쉬울 뿐 아니라, 재활용하거나 이해하기에 모두 쉬운 상태로 남아 있을 수 있다.)

tdd-study's People

Contributors

hrg921 avatar

Watchers

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