Practice to Master your craft
This is how we code
This is how we SHOULD code
Practice
Text
Programming Language
IDE
Compiler
Framework
Technology
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
Conway's Game of Life
https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
Any live cell with fewer then two live neighbors dies as if caused by under-population
Any live cell with two or three live neighbours lives on to the next generation
Any live cell with more then three live neighbours dies, as if by overcrowding
Any dead cell with exactly three live neighbours becomes a live cell as by reproduction