Following reusability guidelines
As you have learned in this chapter, well-written code is easy to read and maintain, as well as bug free. Code like this should be reused when possible. This reduces development time and leaves less chance of introducing bugs in code. You learned in Chapter 9, Applying Algorithms in C#, about the Don’t Repeat Yourself (DRY) principle, where solutions that have already been built shouldn’t be repeated but reused instead. You’ll find that although some parts of the code don’t entirely solve all the problems, they are a great step in the right direction.
Method usage
Methods are a great way to practice reusability in a code base and practice DRY as it can be a path to a new solution. To recap from Chapter 7, Flow Control in C#, methods are blocks of code that are built to execute specific tasks by the programmer, where the benefits allow those blocks of code to be reusable. Sometimes there are parts of the code where it...