Join Jeremy Fairbank to learn how to build frontend applications with the Elm language, a statically typed functional programming language that compiles to JavaScript and has no runtime exceptions in practice.
You’ll begin by exploring Elm’s syntax, defining and calling functions with familiar data types such as strings and numbers, and discover that Elm’s functions have no side effects, meaning they are predictable, reliable, and easily testable. You’ll then build your first application with the Elm Architecture, Elm’s framework for building frontend applications, defining a model to hold application state, a view function to display the state in the browser, and an update function to handle events and create new state to display.
Jeremy concludes by highlighting the safety of building Elm applications by introducing static types. You’ll add type annotations to document your code and see how the Elm compiler prevents type errors. You’ll also improve event handling by creating your own custom type to define the exact kinds of events in our application and see how the compiler ensures you handle all events in your application to prevent bugs. You’ll leave ready to build your own Elm applications.
Jeremy Fairbank is a web developer at Test Double, where he helps improve how the world builds software. Jeremy has many years of experience in frontend and full stack development and has presented numerous times on web development at conferences such as Fluent Conf and RailsConf. He is passionate about frontend development and its future, especially in functional JavaScript and Elm, and is the author of Programming Elm from the Pragmatic Programmers.
Comments on this page are now closed.
For exhibition and sponsorship opportunities, email fluent@oreilly.com
For information on trade opportunities with O'Reilly conferences, email partners@oreilly.com
View a complete list of Fluent contacts
©2018, O'Reilly Media, Inc. • (800) 889-8969 or (707) 827-7019 • Monday-Friday 7:30am-5pm PT • All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners. • confreg@oreilly.com
Comments
Hello, everyone.
Please visit this repo and follow the instructions for installing dependencies on your local machine: https://github.com/jfairbank/building-web-apps-with-elm-tutorial.
We will be using Ellie to run demos and exercises. However, if we run into any issues with Ellie, then we will instead use the above repo, so it will be helpful if you have already installed dependencies. The repo also lists the Ellie URLs we will use for demos and exercises.