Chapter 8. Documentation, Error Handling, Debugging, and Testing
In this chapter we're going to look at the finer details of developing reliable programs: documentation, error handling, debugging, and testing. These tasks aren't what most people think of as "development," but are as important to the overall process as general coding tasks. Without documenting, debugging, and testing your code, it's unlikely that anyone but you could work on the code with much success, and you run the risk of releasing faulty scripts and applications.
This chapter demonstrates how to produce documentation, handle errors in your programs, test the efficiency of your code, and make sure that your code is (mostly) bug-free, all using tools that come with Ruby.
Documentation ...
Get Beginning Ruby: From Novice to Professional now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.