Defensive C++: Defensive Programming & Defensive Design

C++ 20    |    Intermediate
  • 12 Videos | 1h 37m 30s
  • Includes Assessment
  • Earns a Badge
Likes 1 Likes 1
While defensive design involves planning for contingencies that might occur in a software development life cycle, defensive programming entails writing code such that it continues to function predictably in the presence of unforeseen circumstances. Through this course, explore the role of defensive programming and defensive design and the implementation of a defensive barrier in your code. You'll investigate various error reporting techniques, recognize scenarios for implementing a technique rather than exceptions, and distinguish between using exceptions and assertions to raise errors. The course will also help you discover how to use preconditions to check for inputs to your code and postconditions to verify the final results returned by your code. At the end of this course, you will have the skills and ability to follow a defensive approach to your software development and use exceptions and assertions to flag preconditions and check for postconditions.

WHAT YOU WILL LEARN

  • discover the key concepts covered in this course
    choose the right defensive programming technique for the different use cases
    recall the important principles of defensive design
    choose the correct error reporting technique to handle and flag errors
    use compiler warnings to identify uninitialized variables
    use compiler warnings to identify implicit conversions and assignment operator to identify conditional checks
  • use return values to report errors
    use exceptions for error handling
    configure multiple catch blocks correctly to catch exceptions
    program defensively using preconditions for input checks
    program defensively using postconditions for method guarantees
    summarize the key concepts covered in this course

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    1m 50s
    UP NEXT
  • Playable
    2. 
    Defensive Programming
    8m 10s
  • Locked
    3. 
    Principles of Defensive Design
    6m 26s
  • Locked
    4. 
    Understanding Exceptions and Assertions
    8m 46s
  • Locked
    5. 
    Identifying Uninitialized Variables
    9m 8s
  • Locked
    6. 
    Detecting Implicit Conversions & Conditional Checks
    10m 14s
  • Locked
    7. 
    Using Return Values to Report Errors
    6m 47s
  • Locked
    8. 
    Using Exceptions for Error Handling
    10m 14s
  • Locked
    9. 
    Using Multiple Catch Blocks in Exceptions
    11m 58s
  • Locked
    10. 
    Using Preconditions for Defensive Programming
    11m 40s
  • Locked
    11. 
    Checking Method Guarantees Using Postconditions
    5m 25s
  • Locked
    12. 
    Course Summary
    1m 52s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.