Skip to content

Instantly share code, notes, and snippets.

@svoynow
Created September 20, 2016 16:50
Show Gist options
  • Select an option

  • Save svoynow/da173ddfe34f85f329e5a8bb85b36940 to your computer and use it in GitHub Desktop.

Select an option

Save svoynow/da173ddfe34f85f329e5a8bb85b36940 to your computer and use it in GitHub Desktop.
Brownbag notes
- `git checkout explicit-types`
- show more type errors possible w/ annotations
- `git checkout hello-world`
- show undefined error, type error (in editor, in browser)
- `elm-repl`
- Built-in Types
- `git checkout explicit-types`
- show more type errors possible w/ annotations
- Lists
- talk a little about type parameters / parametericity here
- Tuples
- Records
- Type Inference
- Functions
- Modules
- Types
- more about parametricity here
- Standard Lib
- Maybe
- map
- andThen
- Result
- map
- andThen
- No Runtime Exceptions
- compiler prevents type errors
- nil errors
- unhandled cases
Pattern Matching and Destructuring
- Building Web Apps - The Elm Architecture
- `git checkout simple-counter`
- show compiler catching unhandled Msg type
- `git checkout more-counter`
- Embedding your app in HTML
- managed effects
- side-effects
- purity
- Debug.log
- Tasks
- Subscriptions
- Ports
- Tasks, Cmds and HTTP
- relation to callbacks
- `git checkout json`
- startup json-server
- Can fail, but compiler makes you handle it...
- Handling JSON
Dealing with External Events - Subscriptions
- Ports
- your elm and js can subscribe to messages from each other
- how does elm handle messages? through update
- so you need to describe how to turn message from JS into an Elm message
- how does js handle messages? with callbacks
- so you need to fire off an async task from Elm to JS
@svoynow
Copy link
Author

svoynow commented Sep 20, 2016

  • git checkout explicit-types
  • show more type errors possible w/ annotations
  • git checkout hello-world
  • show undefined error, type error (in editor, in browser)
  • elm-repl
  • Built-in Types
  • git checkout explicit-types
  • show more type errors possible w/ annotations
  • Lists
    • talk a little about type parameters / parametericity here
  • Tuples
  • Records
  • Type Inference
  • Functions
  • Modules
  • Types
    • more about parametricity here
  • Standard Lib
    • Maybe
      • map
      • andThen
    • Result
      • map
      • andThen
    • No Runtime Exceptions
      • compiler prevents type errors
      • nil errors
      • unhandled cases

Pattern Matching and Destructuring

  • Building Web Apps - The Elm Architecture
    • git checkout simple-counter
    • show compiler catching unhandled Msg type
    • git checkout more-counter
  • Embedding your app in HTML
  • managed effects
    • side-effects
    • purity
    • Debug.log
    • Tasks
    • Subscriptions
    • Ports
  • Tasks, Cmds and HTTP
    • relation to callbacks
    • git checkout json
    • startup json-server
    • Can fail, but compiler makes you handle it...
  • Handling JSON

Dealing with External Events - Subscriptions

  • Ports
    • your elm and js can subscribe to messages from each other
      • how does elm handle messages? through update
        • so you need to describe how to turn message from JS into an Elm message
    • how does js handle messages? with callbacks
      • so you need to fire off an async task from Elm to JS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment