Welcome to the JSOxford
Code Retreat
part of the Summer of Hacks
#oxcr / @jsoxford
Thanks to our sponsors
Schedule
- 10:30 – Session 1 – paper cuts
- 11:40 – Session 2 – subversive developer
- 12:50 – Lunch
- 13:50 – Session 3 – randori, no conditionals
- 15:05 – Session 4 – immutables only
- 16:20 – Final retrospective & pub
What's it about?
Today is about shooting for code perfection, not results & output.
- 5 sessions
- Same exercise, different constraints
- Pair programming
- Retrospectives at end of each session
- It's a day for you, constraints are just a guide
The rules
- Delete your code at the end of each session
- No really, do #1
Conway's Game of Life
- Live cell && live neighbours <2 -> die
-
Live cell && live neighbours == [2, 3] -> come alive
-
Live cell && live neighbours >3 -> die
- Dead cell && live neighbours == 3 -> come alive
Session 2 – subversive developer
45 minutes
Write the best tests, but the worst code!
- Fix the broken test, in a dastardly way
- Write a new test
- Swap
Session 3 – randori, no conditionals
50 minutes
- No
if
- No
while
- No
for
- No
switch
Session 4 – immutables only
50 minutes