Programming Elm: Build Safe, Sane, and Maintainable Front-End Applications

Jeremy Fairbank

  • 出版商: Pragmatic Bookshelf
  • 出版日期: 2019-08-06
  • 定價: $1,390
  • 售價: 8.0$1,112
  • 語言: 英文
  • 頁數: 250
  • 裝訂: Paperback
  • ISBN: 1680502859
  • ISBN-13: 9781680502855
  • 相關分類: JavaScript
  • 立即出貨 (庫存 < 4)

商品描述

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.18, along with a browser to run the examples in this book.

商品描述(中文翻譯)

Elm 將功能程式設計的安全性和穩定性帶到前端開發,使其成為最受歡迎的新語言之一。Elm 的功能性和靜態類型意味著運行時錯誤幾乎不可能發生,並且它可以編譯為 JavaScript,方便進行網頁部署。本書將幫助您在網站開發中充分利用這種新語言。了解 Elm 架構如何幫助您創建快速應用程序。了解如何將 Elm 與 JavaScript 整合,以便更新舊應用程序。看看 Elm 的工具如何使部署更快更容易。

功能性編程提供了更安全的應用程序,減少了運行時錯誤,但是在功能性和易於使用的解決方案方面一直很難找到,直到出現了 Elm 語言。Elm 具有功能性語言的優點,同時可以編譯為 JavaScript。本書提供了 Elm 語言的完整教程,從介紹 Elm 語法、模塊和虛擬 DOM 的簡單靜態應用程序開始,到探索如何使用函數創建 UI。看看 Elm 如何處理功能性語言中的狀態問題。您將繼續構建涉及通信的更大型應用程序的 HTTP 請求。將 Elm 應用程序與 JavaScript 整合,以便更新舊應用程序或利用 JavaScript 資源。

Elm 還提供了內建的工具,以減輕 JavaScript 中常見的工具混亂問題。本書介紹了 Elm 的部署和測試工具,以簡化開發混亂。深入探討創建單頁應用程序和性能改進等高級概念。Elm 專家 Jeremy Fairbank 將他多年的網頁開發經驗帶到教授如何使用 Elm 進行前端開發。

使用 Elm 和本教程,您的網頁使用者界面將更快、更安全、更容易開發。

所需材料:

您需要最新版本的 Elm,0.18,以及一個瀏覽器來運行本書中的示例。