2.3 Robust Programming
No description yet. This curated deck is ready for daily study.
Card preview (14)
What are examples of defensive design features?
• Authentication • Verification • Validation
What is authentication?
• Checking correct user is entering a system
What is verification?
• User input correct data
What is validation?
• Correct format
What is input sanitation?
• Filtering input data • Remove potential malicious code / SQL injection risk
How can code be made more maintainable?
• Comments • Indentation • Appropriate variable names • Subprograms
What are ways to create appropriate variable names?
• snake_case ( underscores ) • camelCase ( capitals )
What are features of IDE?
• Syntax highlighting • Error diagnostics • Run time environment • Editor • Translator
What are the advantages of IDE?
• Syntax highlighting ; more readable • Error diagnostics ; finds bugs • Run time environment ; see program change • Editor ; write code • Translator ; saves time
What are the two types of testing?
• Iterative ( subprograms) • Terminal ( entire code )
What are the three types of test data?
• Valid • Extreme / boundary • Invalid / erroneous
What is valid data?
• Sensible • Processable data
What is extreme data?
• Falls at the boundary of possible ranges
What is invalid data?
• Erroneous • Cannot be processed