Defensive C++: Defensive Programming & Defensive Design
C++
| Intermediate
- 12 videos | 1h 32m 30s
- Includes Assessment
- Earns a Badge
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 courseChoose the right defensive programming technique for the different use casesRecall the important principles of defensive designChoose the correct error reporting technique to handle and flag errorsUse compiler warnings to identify uninitialized variablesUse compiler warnings to identify implicit conversions and assignment operator to identify conditional checks
-
Use return values to report errorsUse exceptions for error handlingConfigure multiple catch blocks correctly to catch exceptionsProgram defensively using preconditions for input checksProgram defensively using postconditions for method guaranteesSummarize the key concepts covered in this course
IN THIS COURSE
-
1m 50s
-
8m 10s
-
6m 26s
-
8m 46s
-
9m 8s
-
10m 14s
-
6m 47s
-
10m 14s
-
11m 58s
-
11m 40s
-
5m 25s
-
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.