Where possible, convert some of the code-block code into actual code in a class that can be run and tested.
Why
I noticed that there are examples of chunks of code/functions that are just hard coded in a code-block in the topic. This could be moved to an actual class and tested.
Pros of this is the code is tested.
Where
Where it makes sense. Not all cases will. Look at the recursion topic for an example.
What
Where possible, convert some of the
code-block
code into actual code in a class that can be run and tested.Why
I noticed that there are examples of chunks of code/functions that are just hard coded in a
code-block
in the topic. This could be moved to an actual class and tested.Pros of this is the code is tested.
Where
Where it makes sense. Not all cases will. Look at the recursion topic for an example.