Defensive C++: Defensive Programming & Defensive Design

C++    |    Intermediate
  • 12 videos | 1h 32m 30s
  • Includes Assessment
  • Earns a Badge
Rating 4.1 of 17 users Rating 4.1 of 17 users (17)
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

  • 1m 50s
  • 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 on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Rating 4.1 of 21 users Rating 4.1 of 21 users (21)
Rating 4.5 of 76 users Rating 4.5 of 76 users (76)
Rating 4.7 of 9 users Rating 4.7 of 9 users (9)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.9 of 15 users Rating 4.9 of 15 users (15)
Rating 4.7 of 81 users Rating 4.7 of 81 users (81)
Rating 4.2 of 46 users Rating 4.2 of 46 users (46)