Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1.12 KB

elm.md

File metadata and controls

41 lines (28 loc) · 1.12 KB

Elm - programming language

Pros

  • No runtime errors - that's huge!
  • Easy refactoring - basically because compiler will catch all errors (except the logical ones)
  • Need for less tests - a lot of stuff is covered with types and a features of ML langauge
  • Everything is explicit
    • No surprise where this comes from
    • but alos requires passing stuff around and adds lines of code
  • Immutable
  • elm-format - automatic formatting of the code
  • "compiler driven development"

Cons

  • One leader to follow

Resources

Unanswered questions

  • How to do Drag&Drop
  • How to Localize app

Dev tips

Working with Maybe

  • Actively try to model your data structures to avoid Maybe
  • Separate code that checks for presence from code that calculates values
  • Business functions may return Maybe, but may not accept Maybe as any of it's arguments