Book description
Elm brings the safety and stability of functional programing to front-end development, making it one of the most popular new languages. Elm's functional nature and static typing means that run-time errors are nearly impossible, and it compiles to JavaScript for easy web deployment. This book helps you take advantage of this new language in your web site development. Learn how the Elm Architecture will help you create fast applications. Discover how to integrate Elm with JavaScript so you can update legacy applications. See how Elm tooling makes deployment quicker and easier.
Functional programming offers safer applications with decreased runtime errors, but functional solutions that are type safe and easy to use have been hard to find, until the Elm language. Elm has the benefits of functional languages while compiling to JavaScript. This book provides a complete tutorial for the Elm language, starting with a simple static application that introduces Elm syntax, modules, and the virtual DOM, to exploring how to create a UI using functions. See how Elm handles the issues of state in functional languages. You'll continue to build up larger applications involving HTTP requests for communication. Integrate your Elm applications with JavaScript so you can update legacy applications or take advantage of JavaScript resources.
Elm also provides built-in tooling to alleviate the tooling creep that's so common in JavaScript. This book covers Elm's deployment and testing tools that ease development confusion. Dive into advanced concepts including creating single-page applications, and creating performance improvements. Elm expert Jeremy Fairbank brings his years of web development experience to teaching how to use Elm for front-end development.
Your web UIs will be faster, safer, and easier to develop with Elm and this tutorial.
What You Need:
You will need the latest version of Elm, 0.19, along with a browser to run the examples in this book.
Publisher resources
Table of contents
- Preface
- 1. Get Started with Elm
- 2. Create Stateful Elm Applications
- 3. Refactor and Enhance Elm Applications
- 4. Communicate with Servers
- 5. Go Real-Time with WebSockets
- 6. Build Larger Applications
- 7. Develop, Debug, and Deploy with Powerful Tooling
- 8. Integrate with JavaScript
- 9. Test Elm Applications
- 10. Build Single-Page Applications
- 11. Write Fast Applications
- A1. Install Elm
- A2. Run the Local Server
- A3. Elm Package Versions
- Bibliography
Product information
- Title: Programming Elm
- Author(s):
- Release date: July 2019
- Publisher(s): Pragmatic Bookshelf
- ISBN: 9781680502855
You might also like
book
40 Algorithms Every Programmer Should Know
Learn algorithms for solving classic computer science problems with this concise guide covering everything from fundamental …
book
Head First Design Patterns, 2nd Edition
You know you don’t want to reinvent the wheel, so you look to design patterns—the lessons …
book
Programming with Types
Programming with Types teaches type-based techniques for writing software that’s safe, correct, easy to maintain, and …
book
Fundamentals of Software Architecture
Salary surveys worldwide regularly place software architect in the top 10 best jobs, yet no real …