Chapter 12: Code Quality
There are many aspects of code quality. We can talk about efficient code, which is code that runs fast or doesn't waste resources such as memory. It can also be source code that is easy to read and understand for us humans and therefore is easy to read and maintain. In this chapter, we'll talk about this and look at some best practices for writing high-quality code.
We will also look at some examples of things we should try to avoid if we want to write high-quality code.
In this chapter, we will learn about the following topics:
- Understanding what code quality is
- Writing readable code
- Writing efficient code
- Understanding that smart code is not always smart
- Understanding some of the best practices for writing quality code
Before we learn how to write quality code, we should define what code quality is.