~/talk

Crafting the Perfect Computed Property

Talkat EmberCamp London 2016 · on Tuesday, 2016-07-12· [ember]
links:none on file
slides:none on file

Ember.String.format was deprecated so the team builds an Ember add-on that parses plain template strings and compiles them into normal computed-property functions at build time, using a template string parser and bubble transforms to replace the AST. Tagged template literals and an HTMLBars precompile option fail because variable parts aren’t resolvable at module runtime, so the runtime output is just simple concatenation, the add-on is open sourced, and the examples compile to the canonical multi-line CP functions while keeping one-line source ergonomics.

AI-written summary · about

  1. 0:00Start
  2. 0:39Who am I?
  3. 1:58Computed Property Macros
  4. 2:33Example
  5. 3:19Computed.fmt
  6. 4:36What does it look like?
  7. 5:17HTMLBars Precompiler Addon
  8. 7:06Template String Parser
  9. 9:41How does it work?
  10. 13:17How do I use it?
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.