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

Integrating EE with Third-Party APIs

Integrating EE with Third-Party APIs

Presented at the ExpressionEngine London meet-up.

Stephen Lewis

April 13, 2011
Tweet

More Decks by Stephen Lewis

Other Decks in Programming

Transcript

  1. Experience Internet I Have Trust Issues ‣ I don’t trust

    what the API says it wants ‣ I don’t trust what the API says it returns ‣ I don’t trust the API developer ‣ I absolutely don’t the API documentation
  2. Experience Internet Step 1: Know Your Enemy ‣ Read (but

    don’t trust) the documentation ‣ Use HTTP Client to nd out how things really work ‣ Find, learn and use a library ‣ Plan for the future
  3. Experience Internet Step 2: Accept Failure ‣ Get out early

    ‣ Log errors ‣ React appropriately ‣ Use caching ‣ Notify the relevant authorities
  4. Experience Internet Step 3: Fake It ‣ Ef cient, effective

    testing ‣ Consider exceptional events ‣ Use Unit Testing and Test Driven Development ‣ github.com/experience ‣ “TDD by Example” by Kent Beck
  5. Experience Internet In Conclusion ‣ Always know your enemy ‣

    Prepare for failure ‣ Learn about TDD and unit testing