I ran a light-hearted session at Elm Camp to seek out the worst Elm code possible.
Here was my session prompt:
I’ve heard more than a few times “I’d rather deal with bad Elm than good Javascript”.
I think “bad Elm” is probably synonymous with “unintentionally bad Elm”.
But what about the worst Elm? Like, intentionally, maliciously, the absolute most horrible Elm possible. What does that look like? I’d like to think it’s actually still not that bad! Or at least, I can’t imagine not being able to refactor it happily…
Let’s find out together if that’s true!
Here’s my writeup of our session:
Worst Elm Code Possible – Or, the checklist for good Elm, and the one thing to be careful to avoid