Clean Coder Flashcards
(4 cards)
1
Q
Naming
A
Communicate intent
Pronounceable names
Choose parts of speech well
Scope rule
2
Q
Inventor of TDD?
A
Kent Beck
3
Q
What is TDD
A
Three laws:
- Write no production code except to pass a failing test
- Write only enough of a test to demonstrate a failure
- Write only enough production code to pass the test
4
Q
Advantages of TDD
A
- Eliminates fear of refactoring
- Low level design documents always in line with production code
- Reduces debugging time