c0d3 r3tr3@t
Practice to Master your craft
This is how we code
This is how we SHOULD code
Practice
It's a Global thing...
How it's done?
Text
Pair with someone
...That you don't know
Choose a
Subtitle
Programming Language
IDE
Compiler
Framework
Technology
TDD
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
Stop coding when told
DELETE YOUR CODE!
Retrospect
START AGAIN
No Pressure
Feel free to experiment
Conway's Game of Life
https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
DEMO
Conway's 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
4 Rules of Simple Design
1. Run all the tests
2. Contain no duplicate code (DRY)
3. Express all the ideas the author wants to express
4. Minimize classes and methods
S.O.L.I.D Principle of OO
-
Single responsibility
-
Open/Closed principle
-
Liskov substitution
-
Interface segregation
-
Dependency inversion
Yalla, Let's start
Code Retreat December 2018
By Eyal Mrejen
Code Retreat December 2018
- 91