GoConqr has a new look! Let us know what you think.

Mind map

Producing robust programs

joe thompson Computing Year 8 English

Map content

Producing robust programs

  1. Validation

    • Checking data to make sure it is reasonable
    • Range check
      • An age should be in a specific range
    • Format check
      • E-mail addresses should follow a specific format. (Regular expression)
    • Presence check
      • Checking to make sure data has been entered.
    • Type check
      • Checking to see if the data entered is a specific type, for example, checking if a number has been entered.
  2. Authentication

    • Ensuring that someone is who they say they are.
    • Password
    • PIN number
    • Secret question
    • Physical object
      • Swipe card, biometrics, ...
  3. Maintainability

    • Ensuring that the code is readable and maintainable
    • Comments
      • Used to label what a part of the code does. For example: '// this is a loop'
    • Sensible variable names
      • Making sure variable names make sense. For example, 'userName' is a better than 'x'
    • Indentation
      • Using indentation to show separate blocks of code. (see example in the note)
        • // Example Java code for(int i = 0; i < 10; i++) {       System.out.println("The number is: " + i); }
  4. Sanitization

    • Removes any potentially malicious data from an input.
    • Input sanitization is a (poor) method of preventing SQL Injection. By removing SQL queries from an input, you can mitigate SQL Injection.

Information

Description
Year 8 Computing Mind Map on Producing robust programs, created by joe thompson on 16/11/2020.
Created by
joe thompson
Views
0
Rating

More on Robust Programming and Testing

Feedback

What is it about?

What do you think of the new look?

How do you like it?