English · Dansk · Bahasa Malaysia
Reflection
This page answers the reflection questions of the assignment.
Approach
The work went in six small gateways: setup, design, and one gateway for each build step. Every gateway had its own branch and pull request, so each step can be read on its own. The rules were written first and the window last, so the window stayed thin.
What was easy
Counting words per minute. Once a word is fixed at five characters, the formula is one line and the tests are a table. Keeping the clock behind a port also made the timing tests fast, because they never wait.
What was hard
Keeping the window responsive and the timer exact at once. The answer was to read the time only through the clock port and to redraw from a repeating callback, not from a loop. A second hard part was a restart during a running test, which had to cancel the earlier callback.
The biggest learning
A small program benefits from layers. The same four layers let the tests run without a window, without a file and without waiting.
What to do differently
Draw the high score list in a column beside the result, add a way to choose the test length, and add the view model operations that were added during the build to the design class diagram at once, not afterwards.
Home · Setup