Programming Elm: Build Safe, Sane, and Maintainable Front-End Applications
暫譯: 編程 Elm:構建安全、理智且可維護的前端應用程式
Jeremy Fairbank
- 出版商: Pragmatic Bookshelf
- 出版日期: 2019-08-06
- 定價: $1,390
- 售價: 8.8 折 $1,223
- 語言: 英文
- 頁數: 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 和本教程,您的網頁 UI 將變得更快、更安全且更易於開發。
您需要的內容:
您需要最新版本的 Elm,0.18,以及一個瀏覽器來運行本書中的範例。