summaryrefslogtreecommitdiff
path: root/tutorials/module_2/verification_and_validation.md
blob: 75aa8af1db0e224758d424fed6d97b0e393b955f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Writing Robust Code

This section includes tips and good practices you should exercise when writing code. It is acome up by Software Engineers at NASA.

1. Simple Control Flow
2. Limit all loops
3. Limit function size -> function should only perform 1 action -> max 60 lines or fit on a printer paper
4. Practice data hiding -> hide internal object details -> restrict the data access to class members. It maintains data integrity.
5. Check return values from your functions


# Verification and Validation
Verification and validation is a process

**Verification:**

Verification is defined as:
> _The process of determining that a model implementation accurately represents the developer's conceptual description of the model and the solution to the model. (AIAA G-077-1998)_

**Validation:**

Validation is defined as:
> _The process of determining the degree to which a model is an accurate representation of the real world from the perspective of the intended uses of the model. (AIAA G-077-1998)_