https://github.com/simonberner/pairing-in-go-intro
Pairing-Training Intro
https://github.com/simonberner/pairing-in-go-intro
Last synced: 10 months ago
JSON representation
Pairing-Training Intro
- Host: GitHub
- URL: https://github.com/simonberner/pairing-in-go-intro
- Owner: simonberner
- License: mit
- Created: 2022-11-03T17:12:50.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-09T10:59:13.000Z (over 3 years ago)
- Last Synced: 2025-05-20T13:56:03.226Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pairing-in-go-intro
## Excercise Goal
Everyone gets their hand on the keyboard to get familiar with [gitpod.io](https://www.gitpod.io/).
## Mission Goal
We as a pairing group, need to write a function that takes an integer `n` as an argument
and **prints** and **returns**:
- "Fizz": if dividable by 3
- "Buzz": if dividable by 5
- "FizzBuzz": if dividable by 3 and 5
- 'n': otherwise
The mission can't be completed if we do not test it.
## Example
```
1 -> "1"
2 -> "2"
3 -> "Fizz"
4 -> "4"
5 -> "Buzz"
...
15 -> "FizzBuzz"
```
## PingPong TDD Approach
1. Write a test (describing an aspect of the program)
2. Run the test (which should fail because the program lacks that feature)
3. Write just enough code (the simplest possible) to make the test pass
4. Refactor the code and run the test
5. Hand-over to the next person and repeat until it conforms to our mission goal