# Tutorial 10
---
- Assignment style feedback
- Stacks and queues
- Writing tests
---
### Style feedback
Use more constants
```c=
#define DRAW_LINE 1
#define FILL_RECTANGLE 2
#define CHANGE_SHADE 3
#define COPY_PASTE 4
#define ADDITIVE_BRUSH 5
```
---
### Style feedback
More descriptive comments
- Comments above the function prototypes describe what the function does
- What do the inputs and outputs mean?
- What assumptions are made?
- Comment above the function definition about how the code works
- How does your function work at a high-level?
---
### Style feedback
Remove placeholder comments
```c=
// ADD PROTOTYPES FOR YOUR FUNCTIONS HERE
// TODO: Add your code here!
```
---
### Style feedback
Include a brief description of the program in the header comment
---
### Style feedback
Write More functions!
- Each function should only do 1 action
- This generally means each function should be around 20-30 lines long.
---
### Stacks and Queues
- FIFO
- FILO
---
### Writing tests
- Black box testing
- Do not add functions to header
- Use behavioural driven development (BDD)
- GIVEN, WHEN, THEN
- At least 1 test for each function
---
### General Revision Advice
-
{"title":"Tutorial 10","metaMigratedAt":"2023-06-14T23:13:32.549Z","metaMigratedFrom":"Content","breaks":true,"contributors":"[{\"id\":\"3a8692fe-89b9-4b4e-824d-00af489f87f1\",\"add\":1387,\"del\":153}]"}