TDD
Test-Driven Development
IT'S NOT ABOUT TESTS!!!
IT'S NOT ABOUT TESTS!!!
IT'S NOT ABOUT TESTS!!!
It's About Development
- It's a workflow
- Push for simplicity
- Tests are use examples
- Red, Green, Refactor
The Three Laws of TDD
By @unclebobmartin
http://butunclebob.com/ArticleS.UncleBob.TheThreeRulesOfTdd
- You are not allowed to write any production code unless it is to make a failing unit test pass.
- You are not allowed to write any more of a unit test than is sufficient to fail; and compilation failures are failures
- You are not allowed to write any more production code than is sufficient to pass the one failing unit test.
Aligned with
- Baby steps
- Make it works
- Make it right
- Make it fast
Without TDD
With TDD
Production Code With TDD
Production Code Without TDD
The Language
- Flexible
- "Butter" Language ;-)
- Module Pattern
The End
BY Angel 'Java' Lopez / www.ajlopez.com / @ajlopez