Defensive C++: Defensive Programming & Defensive Design

placeholder

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. Youll 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.