Coding for Fun

For the last year, I struggled to write code for fun. Overwork and burn out contributed to my mental health struggles and I had started to have a bit of an aversion to doing it.

Recently I've started picking up Elm again. I forgot how much I enjoy the language. It lets me think about the front end as a stateless object. Which helps resolve the biggest challenge I have with front-end programs, user interaction.

Elm lets you see every action on a page as an input to a function. And, since the code is functional, the front-end is entirely deterministic. Elm accomplishes determinism by using a virtual DOM. That can make Elm code a bit more challenging to write initially, but I find it far easier to change and maintain.

For the first time in a while, I am enjoying writing code for fun.