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

Introducción a Elm

Introducción a Elm

Charla de introducción a elm presentada en chile

Rogério Chaves

November 30, 2016
Tweet

More Decks by Rogério Chaves

Other Decks in Programming

Transcript

  1. QUE ÉS ELM? 2 •4 años de edad •Compila para

    JS •Enfocada en Front-end •Enfocada en Simplicidad
  2. 5 Elm JS ES6 + Babel + Flow + Webpack

    + React + Redux + Immutable or Typescript or Brunch or Gulp or Grunt or Cycle.js + RxJS or seamless-
 immutable Ni siquiera cerca
  3. 10

  4. 11

  5. 12

  6. 24 DE JS PARA ELM port addUser : (UserRecord ->

    msg) -> Sub msg myapp.ports.addUser.send([ "Tom", { age: 32, job: "lumberjack" } ]); myapp.ports.addUser.send([ "Sue", { age: 37, job: "accountant" } ]); JS
  7. 25 DE ELM PARA JS port requestUser : String ->

    Cmd msg myapp.ports.requestUser.subscribe(databaseLookup); function databaseLookup(user) { var userInfo = database.lookup(user); myapp.ports.addUser.send(user, userInfo); } JS
  8. PORQUE ES MUY FÁCIL 27 "Our need for Elm developers

    is constantly increasing. Luckily Elm is easy. I mean, it takes some learning, but I know that I can get my devs productive with it quickly - quicker than Angular or React.” - Amitai Burstein "I’ve introduced a fair amount of developers to the Elm programming language […]. Last week, I introduced one of my team members to React […]. and much more explanation was necessary to get him to be productive.” - Damien Klinnert