Skip to content

Instantly share code, notes, and snippets.

@amitaibu
Last active August 10, 2020 10:20
Show Gist options
  • Save amitaibu/a6efacf85baa2cb1d39269589164b9d3 to your computer and use it in GitHub Desktop.
Save amitaibu/a6efacf85baa2cb1d39269589164b9d3 to your computer and use it in GitHub Desktop.

Intro

Making Impossible States Impossible

Setup

TB: 3h

  1. Elm-format (npm install -g elm-format)
  2. Create Elm app
  3. PHPStorm + Elm plugin

Elm App:

Anonymous/ Authenticated.

Task 1

TB: 1h

  1. If user has age, show - & + so we can decrement & increment the age

Task 2

TB: 3h

  1. User always starts anonymous.
  2. Show an input field. If user types name, they are converted to Authenticated
  3. If user is Authenticated, show a new input allowing entering the age
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment