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

Resisting Complexity

Resisting Complexity

34147b9eecf59779b777eb68a1805113?s=128

Adam Wathan

July 25, 2018
Tweet

More Decks by Adam Wathan

Other Decks in Technology

Transcript

  1. Resisting COMPLEXITY with Adam Wathan

  2. None
  3. None
  4. $gardener = new Gardener; 
 $gardener->water($plant);

  5. None
  6. const names = ['Blair', 'Sam', 'Kelly']
 names.reverse()
 // ['Kelly', 'Sam',

    'Blair']
  7. const names = "Blair, Sam, Kelly" 
 names.split(', ') 


    // ['Blair', 'Sam', 'Kelly']
  8. $date = new DateTime;
 $date->format('l');
 // 'Wednesday'

  9. $gardener->water($plant);

  10. A CAN A GARDENER WATER PLANT. $gardener->water($plant);

  11. A CAN A {OBJECT} {METHOD} {PARAMETER.} ( ) $object->method($param);

  12. A CAN ARRAY REVERSE names.reverse() N

  13. A CAN A STRING SPLIT DELIMITER. names.split(', ')

  14. None
  15. A CAN A STRING SPLIT DELIMITER. names.split(', ')

  16. A CAN A STRING SPLIT DELIMITER. names.split(', ') BE USING

  17. A CAN A {OBJECT} {METHOD} {PARAMETER}. object.method(param) BE USING (

    )
  18. METHODS ARE Affordances

  19. None
  20. A CAN A {OBJECT} {METHOD} {PARAMETER}. object.method(param) BE USING (

    )
  21. A CAN A STRING SPLIT DELIMITER. names.split(', ') BE USING

  22. A ARRAY names.reverse() N CAN REVERSED BE

  23. A CAN A DATE FORMATTED FORMAT STRING. $date->format('l'); BE USING

  24. A CAN USER SAVED. $user->save(); BE

  25. None
  26. A CAN A {OBJECT} {METHOD} {PARAMETER}. $object->method($param); BE USING (

    )
  27. A CAN A GARDENER WATERED PLANT. $gardener->water($plant); BE USING

  28. None
  29. A CAN A GARDENER WATERED PLANT BE USING

  30. A CAN PLANT WATERED BE

  31. $gardener = new Gardener; 
 $gardener->water($plant);

  32. $plant->water();

  33. AGENT NOUNS Eliminating

  34. a·gent noun /ˈājənt noun/ a noun denoting someone or something

    that performs the action of a verb, typically ending in -er or -or, e.g., worker, accelerator.
  35. ENCAPSULATION Promoting

  36. CONQUERING YOUR Fear of Facades

  37. $date = new DateTime('now', 'America/Chicago');
 $date->format('Y-m-d H:i'); 
 // 2018-07-25

    09:00 
 
 $date->setTimezone('Australia/Sydney');
 $date->format('Y-m-d H:i'); 
 // 2018-07-26 00:00
  38. MATTER Ergonomics

  39. PUSH SIDE WORK TO Event Listeners

  40. GOD OBJECTS Breaking up

  41. NEW CONCEPTS Uncovering

  42. FUNCTION Maybe you just need a

  43. Thanks! @adamwathan https://adamwathan.me