627 shaares
- Bad code does too much – Clean code is focused (cf. Single_responsibility_principle)
- The language you wrote your code with should look like it was made for the problem
- It should not be redundant (cf. DRY)
- Reading your code should be pleasant (cf. KISS & YAGNI)
- Can be easily extended by any other developer
- It should have minimal dependencies
- Smaller is better
- It should have unit and acceptance tests
- It should be expressive