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

TDD will Set You Free!

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest. →

TDD will Set You Free!

V 2.2.0

Avatar for James Bender

James Bender

January 15, 2017

More Decks by James Bender

Other Decks in Technology

Transcript

  1. Red, Green, Refactor • Red – Start by writing a

    failing test • Green – Write just enough code to make test pass • Refactor – Optimize your code for readability, maintainability and quality
  2. Demo: Tic-Tac-Toe • Create a library to determine the winner

    of a Tic-Tac-Toe game • Input is a multidimensional (3 X 3) array of string • Results – Returns the winner token (X || O) as a string – Returns an empty String if no winner but moves still available – If the game is a stalemate return an ‘S’
  3. QA

  4. Want to learn more? Thank you! • www.JamesCBender.com • github.com/JamesBender

    • [email protected] • Twitter: @JamesBender • hallwayconversations.com • New Book on Angular/ASP.NET 5 coming in 2017!