~/talk

Porting Web SDK from JS into TS

Talkat AmsterdamJS Conference 2017 · on Thursday, 2017-06-08· [typescript, developer-experience]
slides:none on file

Public JavaScript web SDK is rewritten in TypeScript using yarn/npm, tsc plus webpack, with Mocha and Intern for cross‑browser tests and source maps to preserve stack traces. The SDK is ~13,000 lines and the migration takes three man‑months while bundle size grows 250→800 KB and lines move roughly 11k→12k. Gradual typing lets teams add types after stabilization, compiler error messages prove painful, and generated JS remains readable for consumers.

AI-written summary · about

  1. 0:00Intro
  2. 0:32What was migrated? Web SDK for cloud-based telephony solutions
  3. 1:52Software Complexity Problem
  4. 2:11Migration target
  5. 4:31Types: a trap for errors
  6. 4:58How traps work
  7. 8:48Types pros and cons
  8. 10:04Types cons and pros
  9. 10:49How we use types at Voximplant
  10. 11:22What about clients?
  11. 13:03What about the legacy like jQuery?
  12. 13:53Will it be fat and slow?
  13. 14:47What about Creative JavaScript?
  14. 15:28Gradual transition to TS?
  15. 17:33Toolchain?
  16. 18:08Where to get types?
  17. 18:46How about a build system?
  18. 19:17Continuous integration?
  19. 19:50Testing?
  20. 20:44Best things in practice
  21. 22:14TypeScript pros and cons
  22. 24:32Lessons learned by Voximplant
~/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.