Welcome to the JSOxford Code Retreat part of the Summer of Hacks – Code Retreat



Welcome to the JSOxford Code Retreat part of the Summer of Hacks – Code Retreat

0 0


cr

slides for introduction to code retreat

On Github jsoxford / cr

Welcome to the JSOxford

Code Retreat

part of the Summer of Hacks

#oxcr / @jsoxford

welcome we are JSOxford - monthly meetups & sessions Summer of Hacks! NodeBots next housekeeping: fire exit, toilets, emergency hashtag

Thanks to our sponsors

Not possible without sponsors Haybrook - chat to them Sarah's pitch

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
We'll explain the sessions we go Short break at the end of each session Grab a drink whenever! 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
What is Code Retreat - not Getting Things Done Not really about perfection - trying different approaches Constraints are there to help you think about things in different ways. What you're going to get out of it - TDD/Agile/Pair Programming You're in control. It's about making the most of the time/space

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

Zero-player turn-based game Infinite board Each cell alive or dead Set initial board state Rules apply to generation of next round

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! Fix the broken test, in a dastardly way Write a new test Swap Intro test framework Max 2 minutes per test

Lunch

Session 3 – randori, no conditionals

50 minutes

No if No while No for No switch Intro world board Split into 2 groups

Session 4 – immutables only

50 minutes

Thanks for coming!

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

Now to the pub...

Ryan Brooks / @spikeheap

#oxcr