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

Apprenticeship Year Long Project 2016

Apprenticeship Year Long Project 2016

Avatar for Bradley Birch

Bradley Birch

November 04, 2016

Other Decks in Technology

Transcript

  1. CONTENTS • Why did I build this? • Features •

    Testing • Issues I had • Conclusion. Is it better than NWTP?
  2. WHAT HAVE I BEEN DOING? Developing an incredible trading platform

    using IG Public API Uses Ember JS Implements the REST API Implements the Streaming API
  3. WHAT CAN IT DO? • View Account Data • View,

    close and open positions • View, close and open WO • Search for markets • Add to, create and delete Watchlists
  4. WHAT CAN’T IT DO? • View awesome Tweets • View

    exciting news articles • Charts • 1 click dealing • Submit anything other than size
  5. INITIAL PROBLEMS • XYZ is undefined… Cannot read property ABC

    of undefined… Tried to wrap undefined property • Acceptance test / Integration test / Unit test • Wait for it
  6. STUBS AND SPIES. BEST FRIENDS Dealing with dependencies is difficult

    Use Test Doubles to remove tricky issues Removes side effects and forces certain paths Check specific details
  7. STREAMING Connection Started on authentication Uses a local storage adapter

    Works for accout overview and Search Results Restarts on account switch routes/account.js
  8. RE-USEABLE COMPONENTS • Isolated section of code • It is

    independent of context and the wider world • Removes code duplication
  9. PROMISES • A Promise represents a value which may be

    available now, or in the future, or never.
  10. SIDE NOTES NOT GOOD ENOUGH FOR A WHOLE SLIDE •

    Bootstrap • SCSS • NPM and Bower