Edge cases
Inputs at the edges of what a program handles - exactly on a boundary, zero, a value that shouldn't happen - where most bugs in decisions hide.
Depth 1 · Foundation
You test every boundary in a rule on it and on each side of it, recognise an off-by-one error, think of zero and impossible input, and guard a function against them with an early return.
Sign in to prove what you know with a short quiz, see how deep you've gone, and earn XP for it.
Sign in with GoogleDepths of understanding
- 1
Foundation
You test every boundary in a rule on it and on each side of it, recognise an off-by-one error, think of zero and impossible input, and guard a function against them with an early return.
Your path here
What's still between you and Edge cases, depth 1, in the order you can learn it.
- 1ProgramDepth 1 · Foundation · Program Basics
- 2ExpressionDepth 1 · Foundation · Program Basics
- 3Variables in codeDepth 1 · Foundation · Program Basics
- 4Program stateDepth 1 · Foundation · Program Basics
- 5Input and outputDepth 1 · Foundation · Program Basics
- 6Functions in codeDepth 1 · Foundation · Functions
- 7Return valuesDepth 1 · Foundation · Functions
- 8BooleansDepth 1 · Foundation · Control Flow
- 9ConditionalsDepth 1 · Foundation · Control Flow
- 10Edge casesDepth 1 · Foundation · Writing Correct Code