Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
Update slides to detroit school
Browse files Browse the repository at this point in the history
  • Loading branch information
ReaSu committed Nov 3, 2023
1 parent 90644fd commit 2a61322
Showing 1 changed file with 18 additions and 31 deletions.
49 changes: 18 additions & 31 deletions sessions/03_ping_pong/_content.qmd
Original file line number Diff line number Diff line change
@@ -1,65 +1,62 @@
# Session 2

Focus: Ping Pong πŸ“
Focus: Classical TDD {{< fa solid right-from-bracket>}}

Facilitator: Rea Sutter

---

## Get Your Hands Dirty πŸ› οΈπŸ‘·πŸ—οΈ

Now let's start coding!
> **Classical TDD / Detroit School**
Work test-driven, start with any test from last session

Work inside out, start with a simple test

You shouldn't need any test doubles

Switch roles ping-pong style

---

## How to TDD πŸ€”βœ…πŸ’‘

::: {.fragment}
πŸŸ₯ RED - write a test and see it fail
:::

::: {.fragment}
🟩 GREEN - write **minimal amount** of code to pass the test
:::

::: {.fragment}
🟨 REFACTOR - don't add/change functionality
:::

::: {.fragment}
&nbsp;

πŸ” REPEAT
:::

---

## How to Ping Pong πŸ€”πŸ“πŸ’‘

::: {.fragment}
πŸ…°οΈ writes a test, sees it fail
πŸŸ₯ πŸ…°οΈ writes a test, sees it fail
:::

::: {.fragment}
πŸ‡§ writes the code, sees tests succeed
🟩 πŸ‡§ writes the code, sees test(s) succeed
:::

::: {.fragment}
πŸ…°οΈ refactors, tests still green
🟨 πŸ…°οΈ refactors, test(s) still green
:::

::: {.fragment}
πŸ‡§ writes the next test, sees it fail
πŸŸ₯ πŸ‡§ writes the next test, sees it fail
:::

::: {.fragment}
πŸ…°οΈ writes the code, sees tests succeed
🟩 πŸ…°οΈ writes the code, sees tests succeed
:::

::: {.fragment}
etc.
🟨 πŸŸ₯ 🟩 🟨 etc.
:::

---
Expand All @@ -68,30 +65,20 @@ etc.

---

## Extra Challenge: Explore Directions πŸ§­πŸ—ΊοΈ

> Inside out? Outside in?
Which direction are you more comfortable with?

Try the other one!

---

{{< include ../_pairing.qmd >}}
{{< include ./sessions/_pairing.qmd >}}

---

{{< include ../_learning_and_practicing.qmd >}}
{{< include ./sessions/_learning_and_practicing.qmd >}}

---

{{< include ../_retrospective.qmd >}}
{{< include ./sessions/_retrospective.qmd >}}

* What went well?
* What was the most difficult part?
* Which role do you prefer, and why?

---

{{< include ../_short_break.qmd >}}
{{< include ./sessions/_short_break.qmd >}}

0 comments on commit 2a61322

Please sign in to comment.