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

What's so special about Elm?

What's so special about Elm?

This presentation was given at Webbisauna (https://www.webbisauna.fi/) on April 1st, 2016.

The slides themselves don't tell that much, but the talk was recorded, so hopefully I can link the video here sooner or later.

Ossi Hanhinen

April 01, 2016
Tweet

More Decks by Ossi Hanhinen

Other Decks in Programming

Transcript

  1. What’s so special
    about Elm?
    Ossi Hanhinen
    Futurice
    @ohanhi

    View Slide

  2. What we used to do

    View Slide

  3. jQuery
    Hello Tampere
    Tampere
    event
    listener
    change

    View Slide

  4. jQuery
    Hello Tampere
    Tampere
    event
    listener
    change
    Ajax
    change

    View Slide

  5. React
    Just the UI
    Redux
    Predictable state

    View Slide

  6. Single State
    Model
    View
    map

    View Slide

  7. Single Update
    Action Update
    View View
    Model

    View Slide

  8. Single Update
    Action Update
    User View
    Model
    View

    View Slide

  9. I thought this talk was
    supposed to be about Elm!?

    View Slide

  10. React is JavaScript

    View Slide

  11. Elm is Elm

    View Slide

  12. Functional Programming

    View Slide

  13. Is your function pure?

    View Slide

  14. Is your function pure?

    View Slide

  15. In Elm all functions are pure

    View Slide

  16. Currying and Partial Application

    View Slide

  17. Demo:
    Currying

    View Slide

  18. Functional Reactive Programming

    View Slide

  19. Demo:
    Interactive app

    View Slide

  20. Language features

    View Slide

  21. elm
    Strong static
    types
    That don’t get in the way

    View Slide

  22. Elm has guarantees

    View Slide

  23. zero
    runtime exceptions

    View Slide

  24. Tools
    elm-make - Build Elm and catch errors ahead of time
    elm-package - Package manager that enforces SemVer
    elm-reactor - Hot swapping and time-traveling since 2013
    elm-format - Automatic code beautification

    View Slide

  25. “Go and learn Elm. Seriously.
    It is the simplest language I have
    ever tried, and the team has put a
    crazy lot of effort into making the
    developer experience as nice as
    possible.”
    @ohanhi

    View Slide