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:50Lunch
  • 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

  1. Delete your code at the end of each session
  2. No really, do #1

Conway's Game of Life

  1. Live cell && live neighbours <2 -> die
  2. 
Live cell && live neighbours == [2, 3] -> come alive
  3. 
Live cell && live neighbours >3 -> die

  4. Dead cell && live neighbours == 3 -> come alive

Session 1

45 minutes

  • On paper first

Set up

http://git.io/-5SqZQ

Session 2 – subversive developer

45 minutes

Write the best tests, but the worst code!
  1. Fix the broken test, in a dastardly way
  2. Write a new test
  3. Swap

Lunch

Session 3 – randori, no conditionals

50 minutes

  1. No if
  2. No while
  3. No for
  4. No switch

Session 4 – immutables only

50 minutes

Thanks for coming!


https://www.surveymonkey.com/s/3DYYBPM

Now to the pub...

Ryan Brooks / @spikeheap

#oxcr