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

PureScript Why and What

wuct
August 02, 2018

PureScript Why and What

A short presentation about what is PureScript and why use it.

wuct

August 02, 2018
Tweet

More Decks by wuct

Other Decks in Programming

Transcript

  1. Why PureScript? • Immutable data • Pure functions • Strict

    types (side-effects are included) • Fun
  2. How PureScript describes itself • Compile to readable JavaScript and

    reuse existing JavaScript code easily • We’ve already seen in try.purescript.org/ • https://github.com/justinwoo/purescript-toppokki • Excellent tooling and editor support with instant rebuilds • VSCode supported! • Build real-world applications using functional techniques and expressive types, for example: • https://github.com/justinwoo/purescript-simple-json • https://arthurxavierx.github.io/RealWorldAppComonadicUI.pdf • https://code.fb.com/core-data/open-sourcing-haxl-a-library-for-haskell/ • https://www.yesodweb.com/ http://www.purescript.org/
  3. What Phil Freeman says https://gist.github.com/paf31/adfd15fbb1ac8b99fc68be2c9aca8427#why-you-should-use-purescript • PureScript has type classes,

    and we use them to create very reusable code. Write less code by using a language which allows you to reuse more. • All of these things can be accomplished with the same Traversable instance: • Waiting for a list of AJAX requests to complete • Validating a list of form fields • Ensuring a list of nullable values are all non-null • Finding a list of values which maximizes the value of some function