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

Complex Component Design in Ember

Balint Erdi
October 10, 2015

Complex Component Design in Ember

The (online) talk I gave at the Global Ember Meetup.

Balint Erdi

October 10, 2015
Tweet

More Decks by Balint Erdi

Other Decks in Technology

Transcript

  1. “I thought of objects being like biological cells and/or individual

    computers on a network, only able to communicate with messages”
  2. “I thought of objects being like biological cells and/or individual

    computers on a network, only able to communicate with messages” Alan Kay
  3. Messages between objects, and how they are sent is more

    important than the structure of objects.
  4. Messages between objects, and how they are sent is more

    important than the structure of objects. BDDers (mockists, London School TDD)
  5. Data Down, Actions Up • Pass data down to children

    • Children fire actions towards their parent • Uni-directional flow
  6. Component design ideas (in Ember) • Break bigger components up

    to small pieces • Minimize assumptions about passed-in data • Leverage block params & closure actions • Use block parameters as a public API.
  7. References • “Simple Made Easy” talk by Rich Hickey •

    Star-rating component • Autocomplete component • “The x-foo in you” talk by Ryan Florence