Clean Coder Flashcards

(4 cards)

1
Q

Naming

A

Communicate intent
Pronounceable names
Choose parts of speech well
Scope rule

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Inventor of TDD?

A

Kent Beck

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is TDD

A

Three laws:

  1. Write no production code except to pass a failing test
  2. Write only enough of a test to demonstrate a failure
  3. Write only enough production code to pass the test
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Advantages of TDD

A
  1. Eliminates fear of refactoring
  2. Low level design documents always in line with production code
  3. Reduces debugging time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly