DEV Community

Lessons learned from my first 10k LOC in Elm

Jason on October 24, 2019

I have been working on a personal project of mine for the last couple of months that has the frontend written in Elm. So far everything is going gr...
Collapse
 
herteby profile image
Simon Herteby

Two tips for the Select wrapper:

  • Since only one option can be selected at a time, you can model that by having a selected: Maybe option argument for the whole Select, instead of setting it per option.
  • With some tricks you can make Selects work with any type, not just Strings!

Here's a demo :) ellie-app.com/7253Q8THR2xa1

Collapse
 
rametta profile image
Jason

That's great, thank you Simon!

Collapse
 
buinauskas profile image
Evaldas Buinauskas

Doing a personal project myself and Elm is just a breeze to work with. So elegant.

Collapse
 
nqthqn profile image
nqthqn

Very nice article! I resonate with much of what you have found to be true.

Collapse
 
jxxcarlson profile image
James Carlson

Nice!