As programmers, we should take responsibility for our code. Taking responsibility means ensuring the quality of our code by making it functional, with the fewest possible bugs (and preferably none). We can improve code quality in four distinct ways:
- We can log important events during the execution of our program, making it possible to know what has happened and to provide a solution quickly should any problem arise.
- We can integrate exception handling into our program, because handling possible exceptions properly prevents our program from crashing.
- We should debug our program during the development phase—the best time to remove bugs, because we have the freshest memory of the code.
- We should test our program thoroughly, making sure that every part works before product delivery.