~/talk

Composing Classes with TypeScript

Talkat FrontCon 2018 · 2018-06-14..06-15· [typescript, frontend-architecture]
slides:none on file

Argues that composition replaces brittle inheritance and shows concrete code that moves from a tangled superclass graph to an entity+component model, using a Pixel Weather demo that renders canvas sprites from the OpenWeatherMap API. Uses TypeScript features (generics, interfaces, experimental decorators avoided), ts-jest for on‑the‑fly testing, Rollup bundling, and a stubbed CanvasRenderingContext2D for unit tests. Demonstrates image renderable and loopable components and shows type‑checked constructor injection.

AI-written summary · about

  1. 0:00Start
  2. 3:00TypeScript - A Brief Primer
  3. 8:46Inheritance in TypeScript
  4. 15:53Tight Coupling
  5. 17:33Difficult to Test
  6. 18:28impossible to Scale
  7. 25:56The Benefits of Composition
  8. 27:28Testing Components
  9. 29:22Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.