Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Name Your State State Your Thread (Nordic Ruby ...

Name Your State State Your Thread (Nordic Ruby 2013)

Andrés N. Robalino

June 08, 2013
Tweet

More Decks by Andrés N. Robalino

Other Decks in Programming

Transcript

  1. HOW TO GET AROUND WITH STATE FOR PROGRAMS TO DO

    USEFUL THINGS STATE MANIPULATION CANNOT BE AVOIDED. 13 Saturday, December 14, 13
  2. HOW TO GET AROUND WITH STATE STATE MANIPULATION DOESN’T NECESSARILY

    MEAN STATE MUTATION. 14 Saturday, December 14, 13
  3. HOW TO GET AROUND WITH STATE ‘(and I can hear

    our functional programming friends telling us to think STATE TRANSFORMATION instead of state modification) 15 Saturday, December 14, 13
  4. •Encapsulate mutability and share only immutable data. •Make everything immutable.

    •Shared mutability. •Use libraries to watch over changes and warn of violations (if any) 16 Saturday, December 14, 13
  5. •Encapsulate mutability and share only immutable data. •Make everything immutable.

    •Shared mutability. •Use libraries to watch over changes and warn of violations (if any) 17 Saturday, December 14, 13
  6. •Encapsulate mutability and share only immutable data. •Make everything immutable.

    •Shared mutability. •Use libraries to watch over changes and warn of violations (if any) 18 Saturday, December 14, 13
  7. •Encapsulate mutability and share only immutable data. •Make everything immutable.

    •Shared mutability. •Use libraries to watch over changes and warn of violations (if any) 19 Saturday, December 14, 13