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

JavaScript In The Sky With Types

JavaScript In The Sky With Types

Slides from the talk Abraão Alves and I gave at CEJS 2016 on the importance of thinking about type systems - and how things can be better with TypeScript + other tools.

Matheus Albuquerque

June 04, 2016
Tweet

More Decks by Matheus Albuquerque

Other Decks in Programming

Transcript

  1. distinguish between different kind of primitive values distinguish between them

    and objects distinguish between different kinds of objects
  2. " data Things known - or assumed as facts -,

    which become the basis of reasoning or calculation.
  3. " data Quantities, characters or symbols of which operations are

    performed by a computer and stored and transmitted as electrical signals and recorded on magnetic, optical or mechanical recording media.
  4. " processes Computational processes are abstract beings that inhabit computers.

    As they evolve, processes manipulate other abstract things called data. The evolution of a process is directed by a pattern of rules called a program. People create programs to direct processes.
  5. type systems "A type system is a syntactic method for

    automatically checking the absence of certain erroneous behaviors by classifying program phrases according to the kinds of values they compute. Benjamin Pierce - Types and Programming Languages
  6. The fundamental purpose of a type of system is to

    avoid the occurrence of errors during the execution of a program. Luca Cardelli - Type Systems "
  7. " Correctness-by- Design A program that is valid in the

    language, should also be a correct program.
  8. 1.5 1.6 1.7 1.8 Core ES2015 + Decorators Full ES2015

    + React/JSX Async/await on server Control flow analysis one year, four releases
  9. 1.TYPES CAN SERVE AS DOCUMENTATION 2. The compiler is your

    first unit unit test 3. tHE COMPILER IS YOUR BEST FRIEND