- Practice C (without reference)
- Practice setting up CMake (without reference)
- Practice Test-and-Commit-Or-Revert (Kent Beck, reference)
- C Code is cleaner, as rules are independent
- Managed to setup CMake + FetchContent_Declare. Had to look at the refence + previous projects
- Size of the step: ~31 commits in ~1h (average every 2 minutes; refactoring average is much higher than average while thinking / designing)
- Did not finish the 'Conjured' items.
- Started from Emily Bache's setup for C
- Added CMake setup
- Tested some more
- Manually verified the coverage is good enough.
- Refactor to duplicate behaviour, then moving to individual if statements (rules are independent)
- Refactor to move the
update_quality
to the struct, simulating polymorphism / dynamic dispatching (using a function pointer) - Refactor to split it into different files.
- make and a C++ compiler (like gcc) is installed on your system and is in the PATH
- CMake is installed. CMake automatically installs CppUTest.
- Internet connection (the first time you build from scratch) to fetch CppUTest (+ other dependencies, if any).