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

Moving SQL Clone Web Client from ES6 to TypeScript

Moving SQL Clone Web Client from ES6 to TypeScript

Internal Lightning Talk @ Redgate, Cambridge, UK

Why and how behind moving SQL Clone Web Client, which is built on React and Redux, from ES6 to TypeScript.

Tugberk Ugurlu

May 17, 2016
Tweet

More Decks by Tugberk Ugurlu

Other Decks in Programming

Transcript

  1. https://charlieharvey.org.uk/page/javascript_the_weird_parts JavaScript: The Friend of Your Enemy! x = [0]

    x == x -> true x == !x -> true #wtf true+true===2 -> true true-true===0 -> true true===1 -> false #wtf (!+[]+[]+![]).length -> 9 #wtf []+[] -> "" []+{} -> "[object Object]“ {}+[] -> 0 #wtf 0.1+0.2==0.3 -> false Math.max()>Math.min() -> false #wtf
  2. Primary Motivations Compile-time safety (catch things early) Take advantage of

    TypeScript language features Make the context available on each module