Key Concepts in Programming by Intention
Clarity is a Key Concept
- A central idea in XP.
- It means making your intent clear when you write code.
- Have you ever had to work on a piece of code and found that it was hard to understand?
- Maybe the logic was convoluted, the identifiers meaningless, or worse, misleading.
- You say there was documentation?
- Was it readable?
- Did it make sense?
- Was it up to date with the code?
- Are you sure?
- How do you know?