-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
guillaume
committed
Nov 19, 2023
1 parent
052c77d
commit 3940de1
Showing
4 changed files
with
111 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Hole 3 to Hole 4 | ||
|
||
Change the code in hole 3 to be identical to the code on hole 4, both implenentation and tests can change. | ||
|
||
## Refactorings | ||
|
||
- Remove magic strings and numbers | ||
- Introduce constant | ||
|
||
## Tips | ||
|
||
- Use a diff tool to identify the code changes you need to perform | ||
- Check the code coverage is enough to detect any unintended behaviour changes | ||
|
||
### While refactoring | ||
|
||
- Stay in the green while refactoring | ||
- Run the tests after each refactor | ||
- Check all tests still pass | ||
- Check code coverage has not dropped | ||
- Commit after each refactor | ||
- In case of persistent test fails, use `git reset` to go back to green |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.