by Srikumar (@srikumarks) on Monday, 15 August 2016
- Full talk
- Technical level
The Elm Architecture (TEA) is widely talked and written about as a scalable way to approach web UI development. Yet, for many it isn’t clear about how to think about and model domains within the architectural “constraint” posed by TEA. This talk will dive deep into animations in user interfaces as an example of how to approach such “effectful” domains in Elm. We’ll take a look into well known models of animation deployed on mobile devices and in browsers and single step through building a model for working with general purpose animations in Elm. The ideas and approach outlined are expected to be portable into other domains too. The process presented will also illustrate using the Elm compiler as an interactive peer to arrive at a domain model as opposed to “just a code translation tool”. Will feature demos, of course.
- A brief introduction to Elm and “The Elm Architecture”. (v0.17)
- Component composition in Elm and typical usage.
- Effectful domains that feel hard and how v0.17 addresses some of these difficulties. This is inspired by the “Tackling the awkward squad” work in Haskell.
- Intro to animations in interactive systems
- Fixed animations
- Traditional reactive approach (Fran)
- Interruptible and retargetable animations
- The Core Animation model
- Physics based animations
- Systematic decomposition of an Elm application.
- Modeling various types of animations in Elm. Note that I won’t be talking about a layer atop SVG or CSS animations, but about elm code that determines the appearance and behaviour of an interface at every time step - i.e. the level where a developer has full control.
- Basic model of physics based animations
- Effects and application state transitions
- Incorporating sophisticated animations in Elm applications.
- Performance roundup.
- Summary, code pointers, etc.
A basic grasp of Elm would give a leg up. Will try and make it accessible to a wide audience of programmers.
Currently heads engineering at Pramati Technologies, Chennai. Has been an Elm user and evangelist for a long time. Created elm-anima to illustrate how to think about animations in Elm and used it in internal and client applications - desktop and mobile. Fan of “doing it all in Elm” - from layout to styling to animations. Part of the Elm v0.17 pre-release group.