Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Let's shake some trees

Hear about how we are using recast with Ember CLI at British Gas to only provide our web applications with the ember data models they need from a shared addon that contains all our models. You will also learn about abstract syntax trees and how Ember’s commitment to backward compatibility has influenced the way we introduce changes to our private shared addons.

  • Login to see the comments

  • Be the first to like this

Let's shake some trees

  1. 1. Let’s shake some trees!
  2. 2. Commons Models Services Components Helpers
  3. 3. “Inheritance is pure evil”
  4. 4. We need to shake trees! “I’ll find out what you need” “You tell me what you need”
  5. 5. The tools we need Broccoli funnel Recast
  6. 6. First pass Included: [‘model1’] Model1 + Model2 + Model3
  7. 7. Recast Second pass Included: [‘model1’, ‘model2’] Model1 + Model2
  8. 8. Recast .parse() Modify Source .print() AST
  9. 9. Abstract Syntax Trees “In computer science, an abstract syntax tree (AST), or just syntax tree, is a tree representation of the abstract syntactic structure of source code written in a programming language.” Demo

×