tdd coding dojo

15
TDD Coding Dojo Mahmood Hanif [email protected] https:// www.linkedin.com/in/mhanif

Upload: mahmood-hanif

Post on 13-Apr-2017

183 views

Category:

Software


3 download

TRANSCRIPT

Page 1: Tdd Coding Dojo

TDD Coding Dojo

Mahmood Hanif

[email protected]

https://www.linkedin.com/in/mhanif

Page 2: Tdd Coding Dojo
Page 3: Tdd Coding Dojo

Shu-Ha-Ri

First learn, then detach, and finally transcend.

Page 7: Tdd Coding Dojo

Red-Green-Refactor

Above diagram copied shamelessly from unknown online source via Google Images

Page 8: Tdd Coding Dojo

•Given

•When

•Then

•Arrange

•Act

•Assert

Page 9: Tdd Coding Dojo

Conway’s Game Of Life

Page 10: Tdd Coding Dojo

https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life

http://www.bitstorm.org/gameoflife/

Page 11: Tdd Coding Dojo

Rules

• Any live cell with fewer than two live neighboursdies, as if caused by under-population.

• Any live cell with two or three live neighbourslives on to the next generation.

• Any live cell with more than three live neighboursdies, as if by over-population.

• Any dead cell with exactly three live neighboursbecomes a live cell, as if by reproduction.

Page 12: Tdd Coding Dojo

Randori

• Two people at a time

• One person at keyboard

• The other assists

• Every 5 minutes keyboarder moves off, assister goes to keyboard, new person assists

Page 13: Tdd Coding Dojo

http://cyber-dojo.org: 98D0F6

Page 14: Tdd Coding Dojo

Retrospective

What did we learn?

Page 15: Tdd Coding Dojo

https://github.com/mmhanif/GOL