December 2023
Intermediate to advanced
794 pages
16h 31m
English
Code without tests is bad code. It doesn’t matter how well written it is; it doesn’t matter how pretty or object-oriented or well-encapsulated it is. With tests, we can change the behavior of our code quickly and verifiably. Without them, we really don’t know if our code is getting better or worse.
— Michael C. Feathers
The focus of this chapter is to inculcate the skills necessary for debugging, testing, and profiling Python programs. Removing the errors in the program is called debugging. Testing is to check whether a Python program gives the expected results. Profiling is to find the bottlenecks of a program that affect its efficiency.
By the end of this chapter, the reader would be ...
Read now
Unlock full access