Cognitive Load
Purpose
- Reduce the mental effort required to understand code
Covers
- Simplicity and readability
- Avoiding unnecessary complexity
Variable Naming and Cognitive Load
- Names are the first line of documentation
- Clear names reduce mental overhead
Example (Flutter, short):
// Prefer intent-focused names.
final isUserSignedIn = session.isAuthenticated;