Skip to content

Commit

Permalink
Update TDD lesson
Browse files Browse the repository at this point in the history
  • Loading branch information
richelbilderbeek committed Nov 21, 2023
1 parent 7d99dd5 commit 5bdb2ea
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 12 deletions.
9 changes: 8 additions & 1 deletion tdd/show_progress.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,19 @@ testthat::expect_equal(ncol(t), 3)
Now the participants:

# Agutin:

# Daniel: https://github.com/DanielRiepl/programming_formalism_is_even_dr

# Jonas: https://github.com/Netzach/is_even

# Renate: https://github.com/RenateWilcke/tdd_progform/blame/main/tdd/is_zero.py

# Sarah: https://github.com/semccomas/is_even

# Romanos: https://github.com/Roman-Si/is_even
# Thomas Frank:

# Thomas Frank:

# Tina: https://github.com/TinclG/Programming_formalism_course_TGS.git

```{r}
Expand Down
28 changes: 17 additions & 11 deletions tdd/tdd_lecture/tdd_lecture.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,13 @@ A: Yes

## Exercise 1: `is_even`

- Create a GitHub repository called `is_even`
- Share URL of repo with teachers
- Use the GitHub repository for the learners of this course,
e.g. https://github.com/programming-formalisms/programming_formalisms_project_autumn_2023
- Create a folder repository called `learners/[your_name]/is_even`,
e.g. `learners/richel/is_even`
- Develop a function called `is_even`
- Try to be **exemplary**
- We'll discuss a repo history after the break
- We'll discuss a commit history after the break

Done? Write `is_odd`, then `is_probility`.

Expand Down Expand Up @@ -121,11 +123,13 @@ A: Until you cannot break your function anymore.

## Exercise 2: `is_odd`

- Create a GitHub repository called `is_odd`
- Share URL of repo with teachers
- Use the GitHub repository for the learners of this course,
e.g. https://github.com/programming-formalisms/programming_formalisms_project_autumn_2023
- Create a folder repository called `learners/[your_name]/is_odd`,
e.g. `learners/richel/is_odd`
- Develop a function called `is_odd`
- Try to be **exemplary**
- We'll discuss a repo history after the break
- We'll discuss a commit history after the break

Done? Try exercise 3: `is_probability`.

Expand All @@ -137,18 +141,20 @@ Done? Try exercise 3: `is_probability`.

## Exercise 3: `is_probability`

- Create a GitHub repository called `is_probability`
- Share URL of repo with teachers
- Use the GitHub repository for the learners of this course,
e.g. https://github.com/programming-formalisms/programming_formalisms_project_autumn_2023
- Create a folder repository called `learners/[your_name]/is_probability`,
e.g. `learners/richel/is_probability`
- Develop a function called `is_probability`
- Try to be **exemplary**
- We'll discuss a repo history after the break
- We'll discuss a commit history after the break

## Extra exercises

Done?

| Exercise | Function name | Function purpose |
|-----------------|-----------------|--------------------------------------|
|------------------|------------------|-------------------------------------|
| 4 | `is_number` | Determines if an object is a number |
| 5 | `are_numbers` | Determines if an object is a list of numbers |
| S1 | `is_roman_number` | Determine if a string is a roman number |
Expand All @@ -162,7 +168,7 @@ Done?

![](thomas_and_hunt_the_pragmatic_programmer.jpg)

## Problems
## Weaknesses

- We only test manually
- We only test om our computer
Expand Down

0 comments on commit 5bdb2ea

Please sign in to comment.