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.
Comments on this page are now closed.
©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. • firstname.lastname@example.org