Elm Weekly - Issue #105
As many people are staying at home at this time, this week's issue is extra long: partial defunctionalisation, masonry layouts, file upload, animation with Animate.css, code linting, licence checking, and the phantom builder pattern.
Articles and Discussion
A useful technique: partial defunctionalisation
Interesting Discourse discussion of a technique which allows you to avoid storing functions in the model.
Type Driven Development: Simple masonry layout in 50 lines of Elm code
Luca Mugnaini demonstrates an implementation of a masonry layout with elm-ui. Demo.
Simple performant CSS animations in Elm with Animate.css
Alex Korban experiments with using Animate.css in an Elm application.
File Upload with Elm and ActiveStorage
Anthony Moffa shows how to make Elm and Rails/ActiveStorage play nice together for file uploads.
Tools and Projects
Jeroen Engels has created elm-review, the Elm analogue of JavaScript's ESLint. It analyzes Elm code and tries to recognise patterns that may be considered harmful or bad practice.
Wolfgang Schuster has a made a tool to list license information for your Elm dependencies.
Find more Elm tools and packages in the Elm Catalog.
Talks
In this livestream, Dillon Kearns and Jeroen Engels experiment with the "phantom builder" pattern, a technique which allows you to place extra compile-time constraints on the function call pipeline:
That's it for this week!
If you have something you’d like to submit for an upcoming edition, tweet @elmweekly with a link, send an email through to elmweekly@korban.net, or just hit Reply.