Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

ruthmoog
ruthmoog

Posted on • Edited on

     

Book Club: "Test Driven Development: By Example" #12

Chapter 12: Addition, Finally

There's need of some thinking for this chapter, where we begin chipping away at addition.

Some things that stuck out for me, was our To Do list hygiene - as the list starts to get longer we can discard the 'done' items, and copy across the remaining tasks; this gives an opportunity to finish off items that are not worthy of being written onto the new list.

We also started to think aboutreduce as a bucket or wallet to collectMoney. I first learned about reduction in programming in Ruby, and visualise the concept as a bucket and spade, processing each shovelful into the bucket. You're applying some function to elements in a list, and saving the result.

The next step will be refactoring our new green test to make the implementationreal.

🔎 View my code-along repo athttps://github.com/ruthmoog/test-driven-development-by-example


Book cover Kent Beck's "Test Driven Development: By Example" was released in 2002. The book aims to explain how to use TDD to write quality code that works.

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Developer • 👩🏻‍💻 • she / her / hers
  • Location
    UK
  • Education
    Makers Fellow Alum
  • Pronouns
    she/her
  • Joined

More fromruthmoog

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp