Skip to content

Instantly share code, notes, and snippets.

@arialdomartini
Last active March 25, 2024 06:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arialdomartini/e736be38123bf186ce5ab4712bceda3a to your computer and use it in GitHub Desktop.
Save arialdomartini/e736be38123bf186ce5ab4712bceda3a to your computer and use it in GitHub Desktop.
Conway's Game of Life

Selezionati

No-s

  • No mutable state
  • no loops (for, while)
  • no statements
  • no mouse
  • no primitives
  • no else (only guards)
  • no conditionals
  • no arrays
  • no mocks

only-s

  • only void (Tell Don't Ask)
  • only 1 liners
  • only statics
  • only automated refactorings
  • max 2 fields

Design

  • State decoupled from the behaviour (no OO)
  • pure core, imperative shell (pure functions should not call impure code)
  • each cell a Task/Thread
  • top-down
  • bottom-up
  • One level of indentation
  • CQS

game

  • 3D
  • Infinite board
  • Boundaries with bouncing
  • no board

Collaboration

  • Ping Pong pairing
  • Strong Type Pairing: Navigator takes decisions
  • Mute Pairing
  • Evil Coder

organizzazione

  • Repo, con un'implementazione
  • Slide aggiornate
  • Chiedere versione .NET
  • Istruzioni da eseguire prima in preparazione
  • Lavagna
  • Proiettore?
  • Informazioni sulla sala
  • In presenza: chi in remoto è un one-way
  • Garantire numero, altrimenti non funziona
  • Si lavora in pair: un tavolo ogni 2 persone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment