Cicode Programming Reference > Using Cicode Programming Standards > Defensive Programming

Defensive Programming

Defensive programming is an approach to improve software and source code. It aims to improve general quality by reducing the number of software bugs. It promotes making the source code readable and understandable. It aims to make your code behave in a predictable manner despite unexpected input or user actions.

You should try to:

UNINTENDED EQUIPMENT OPERATION

  • Write your Cicode programs with the minimum number of concurrent instructions suitable to your application.
  • Use semaphores or some related means to coordinate program flow if your program will execute a high number of concurrent instructions.

Failure to follow these instructions can result in death, serious injury, or equipment damage.

See Also

Using Cicode Programming Standards

Modular Programming

Function Error handling