Transcript
Page 1: Elm: Front-end do jeito certo (Matheus Lima)

Ajudamos empresas a criar produtos digitais de sucesso

Page 2: Elm: Front-end do jeito certo (Matheus Lima)

Elm: Front-End do jeito certo

Matheus Lima

Page 3: Elm: Front-end do jeito certo (Matheus Lima)

JavaScript nos dá liberdade.

Page 4: Elm: Front-end do jeito certo (Matheus Lima)

Mas rapidamente essa liberdade se vira contra nós.

Page 5: Elm: Front-end do jeito certo (Matheus Lima)

this

Page 6: Elm: Front-end do jeito certo (Matheus Lima)

undefined is not a function

Page 7: Elm: Front-end do jeito certo (Matheus Lima)

“JavaScript não precisa de mais performance, mas de confiabilidade.”

Douglas Crockford

Page 8: Elm: Front-end do jeito certo (Matheus Lima)

Elm

Page 9: Elm: Front-end do jeito certo (Matheus Lima)

Características

Page 10: Elm: Front-end do jeito certo (Matheus Lima)

1. Funcional

Page 11: Elm: Front-end do jeito certo (Matheus Lima)

2. Fortemente Tipada

Page 12: Elm: Front-end do jeito certo (Matheus Lima)

3. Compila para JS, HTML e CSS

Page 13: Elm: Front-end do jeito certo (Matheus Lima)

4. Não existe null nem undefined

Page 14: Elm: Front-end do jeito certo (Matheus Lima)

Trazer os benefícios e garantias da Programação Funcional para o Front-End

Page 15: Elm: Front-end do jeito certo (Matheus Lima)

Elm != JavaScript

Page 16: Elm: Front-end do jeito certo (Matheus Lima)

Vantagens

Page 17: Elm: Front-end do jeito certo (Matheus Lima)

1. Compilador inteligente

Page 18: Elm: Front-end do jeito certo (Matheus Lima)

Cannot find variable `butto`2| [ butto [ onClick Decrement ] [ text “-” ] ^^^^^

Maybe you want one of the following?buttonHtml.button

Page 19: Elm: Front-end do jeito certo (Matheus Lima)

2. Boas práticas built-in na linguagem

Page 20: Elm: Front-end do jeito certo (Matheus Lima)

Programação Funcional

Page 21: Elm: Front-end do jeito certo (Matheus Lima)

Imutabilidade

Page 22: Elm: Front-end do jeito certo (Matheus Lima)

Previsibilidade

Page 23: Elm: Front-end do jeito certo (Matheus Lima)

Reatividade

Page 24: Elm: Front-end do jeito certo (Matheus Lima)

3. Não existem runtime errors

Page 25: Elm: Front-end do jeito certo (Matheus Lima)

Show me the code

Page 26: Elm: Front-end do jeito certo (Matheus Lima)

Pra onde ir depois daqui?medium.com/@matheusml

Page 27: Elm: Front-end do jeito certo (Matheus Lima)

www.concretesolutions.com.brblog.concretesolutions.com.br

Rio de Janeiro – Rua São José, 90 – cj. 2121Centro – (21) 2240-2030

São Paulo - Rua Sansão Alves dos Santos, 433 4º andar - Brooklin - (11) 4119-0449