• Online, Self-Paced
Course Description

In this course, you'll explore techniques for writing secure code, including how to use assertions, create defensible methods, write proper if and switch statements, use exceptions, and anticipate and handle errors in your C/C++ code.

Learning Objectives

Defensive Programming Techniques

  • start the course
  • recognize what clean code is and the best techniques for writing clean code
  • identify the key features of iterative design
  • use pseudo-code to develop programming solutions
  • use assertions in your programming code
  • apply pre and post conditions to C/C++ code

Defendable and Testable Code

  • recognize how to write testable C/C++ code
  • create examples of defensible methods
  • identify how to apply defensive techniques for method parameters and return values
  • recognize how to implement variable declarations for defendable code
  • identify how to use if and switch statements in creating defendable code

Working with Errors

  • demonstrate how to use exceptions to handle errors
  • create a C/C++ application that incorporates error codes and messages into its error handling
  • recognize how to use error processing and global objects in your programs
  • identify how to handle errors locally in C/C++ code
  • recognize how to anticipate potential errors in C/C++ code

Practice: Creating Defensible C/C++ Code

  • use defensive coding techniques to create clean, testable methods

Framework Connections

The materials within this course focus on the NICE Framework Task, Knowledge, and Skill statements identified within the indicated NICE Framework component(s):

Specialty Areas

  • Software Development
  • Test and Evaluation
  • Vulnerability Assessment and Management