O'Reilly logo

Programming Elm by Jeremy Fairbank

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Apply the Elm Architecture

The Elm Architecture is Elm’s built-in framework for creating applications. In this section, you will learn about the architecture through adding a new feature to the Picshare application.

The Elm Architecture provides a standard way of building applications known as the Model-View-Update pattern. As its name suggests, this pattern has three important parts: a model, a view, and a method of updating the model. In the figure, you can see an overview of how the Elm Architecture works. You’ll revisit later how all the pieces in the figure fit together. For now, we’ll gain our understanding of a model by adding one to the application.

Create a Model

In Elm applications, the model is responsible for containing all your ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required