DEV Community

Discussion on: What was your win this week?

Collapse
 
nicklayb profile image
Nicolas Boisvert

This week, I... did a Conway's Game of Life in Elm without any testing. Once the compiler told me that everything was good, everything was.

https://media.giphy.com/media/OK27wINdQS5YQ/giphy.gif

Collapse
 
cubiclebuddha profile image
Cubicle Buddha

Cool!!! Im jealous. I’m hoping I can start doing a similar thing with React + TypeScript. I admire elm a lot but I think my coworkers would die if they had to go full FP. TypeScript lets me write immutable, one-way-bound code but I can still make it look “imperative-like.” (But i kinda wish I was doing Elm). Have you tried using the Readonly types of TypeScript?

Collapse
 
nicklayb profile image
Nicolas Boisvert

No I did not, I used TypeScript on my own and loved it but I was having weird problem. I think my comprehension of TS is not perfect. I’m not doing Elm at job either, only for personal projets but I wish we do. I’m currently moving my team from Ruby to Elixir which is already, some coworkers does not see the real benefits. With TypeScript or Elm we would have the same problem, when I talked about TypeScript, they told me « All it gives is type? What is the gain? »

I tried to explain but still.. Anyway, I will be working on a transition to TypeScript soon!

Thread Thread
 
cubiclebuddha profile image
Cubicle Buddha

Yea you’re right. It’s hard to explain the benefits like immutability.