Defensive Design

1 / 19
next
Slide 1: Slide
ComputingLower Secondary (Key Stage 3)

This lesson contains 19 slides, with interactive quizzes and text slides.

Items in this lesson

Slide 1 - Slide

Slide 2 - Slide

Slide 3 - Slide

Slide 4 - Slide

Slide 5 - Slide

Slide 6 - Mind map

Slide 7 - Slide

Slide 8 - Slide

Slide 9 - Slide

The last one or two digits of a code are used to check the other digits are correct
Checks the data is in the right format
Checks the data isn't too long or short
Looks up acceptable values in a table
Checks that data has been entered into a field
Checks that a value falls within a specified field. 
Looks up words in a dictionary
Bar code readers
Date of birth - DD/MM/YY
Password needs to be at least 6 letters long
Only 7 possible days of the week
Entering the long card number when purchasing something online
Number of hours worked must be less than 50 and more than 0
Red lines to underline misspelt words

Slide 10 - Drag question

Slide 11 - Slide

Slide 12 - Mind map

Slide 13 - Slide

Provides Structure 
Makes it easier to read/understand
Makes it easier to read/understand
Makes it easier to read/understand
Makes finding and updating functions easy
Groups together a function
Explain what the code does
Make the reader aware of any issues/bugs

Slide 14 - Drag question

Slide 15 - Slide

Slide 16 - Slide

Slide 17 - Slide

Slide 18 - Slide

Slide 19 - Mind map