Upgrade to Pro — share decks privately, control downloads, hide ads and more …

TDD in JavaScript

TDD in JavaScript

The slides I use for introduction to TDD course.

Alexander Beletsky

July 15, 2014
Tweet

More Decks by Alexander Beletsky

Other Decks in Programming

Transcript

  1. Test Driven
    .JS

    View Slide

  2. [email protected]
    http://beletsky.net
    http://twitter.com/alexbeletsky

    View Slide

  3. What are we going to do?

    View Slide

  4. What are we going to do?
    • prepare the environment

    View Slide

  5. What are we going to do?
    • prepare the environment
    • have TDD intro

    View Slide

  6. What are we going to do?
    • prepare the environment
    • have TDD intro
    • practice the basic skills

    View Slide

  7. What are we going to do?
    • prepare the environment
    • have TDD intro
    • practice the basic skills
    • discuss and have fun!

    View Slide

  8. Development environment
    • node.js (npm) ~ 0.10.x
    • git ~ 1.8.x
    • Chrome / Firefox / IE
    • Sublime Text (Web Storm, Notepad)

    View Slide

  9. What the heck is
    TDD?

    View Slide

  10. View Slide

  11. The Three Laws of TDD
    • No production code without test
    • No more unit test sufficient to fall
    • No more production code sufficient to pass

    View Slide

  12. But Why?

    View Slide

  13. Less bugs, more speed

    View Slide

  14. Regression stability

    View Slide

  15. Safe(r) refactoring

    View Slide

  16. Test Driven Design

    View Slide

  17. Team / Code culture

    View Slide

  18. FUN :)

    View Slide

  19. TDD
    is all about discipline

    View Slide

  20. :shu :ha :ri

    View Slide

  21. Let’s get
    STARTED..

    View Slide