O'Reilly logo

Code Craft by Pete Goodliffe

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Get Thinking

A detailed discussion of these questions can be found in the "Appendix A" section on page 487.

Mull It Over

  1. Are return values and exceptions equivalent error reporting mechanisms? Prove it.

  2. What different implementations of tuple return types can you think of ? Don't limit yourself to a single programming language. What are the pros and cons of using tuples as a return value?

  3. How do exception implementations differ between languages?

  4. Signals are an old-school Unix mechanism. Are they still needed now that we have modern techniques like exceptions?

  5. What is the best code structure for error handling?

  6. How should you handle errors that occur in your error-handling code?

Getting Personal

  1. How thorough is the error handling in your current codebase? ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required