Web Development with ReasonML: Type-Safe, Functional Programming for JavaScript Developers
暫譯: 使用 ReasonML 的網頁開發:為 JavaScript 開發者提供類型安全的函數式編程

Eisenberg, J. David

  • 出版商: Pragmatic Bookshelf
  • 出版日期: 2019-04-30
  • 定價: $1,560
  • 售價: 8.8$1,373
  • 語言: 英文
  • 頁數: 208
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1680506331
  • ISBN-13: 9781680506334
  • 相關分類: JavaScript
  • 立即出貨 (庫存 < 4)

相關主題

商品描述

ReasonML is a new, type-safe, functional language that compiles to efficient, readable JavaScript. ReasonML interoperates with existing JavaScript libraries and works especially well with React, one of the most popular front-end frameworks. Learn how to take advantage of the power of a functional language while keeping the flexibility of the whole JavaScript ecosystem. Move beyond theory and get things done faster and more reliably with ReasonML today.

ReasonML is a new syntax for OCaml, a battle-tested programming language used in industry for over 20 years. Designed to be familiar to JavaScript programmers, ReasonML code compiles to highly readable JavaScript. With ReasonML, you get OCaml's powerful functional programming features: a strong static type system with an excellent type inference engine, pattern matching, and features for functional programming with immutable variables. ReasonML also allows flexibility with opt-in side effects, mutation, and object-oriented programming. ReasonML hits the sweet spot between the pure theoretical world and the laissez-faire approach of JavaScript.

Start using ReasonML's powerful type system as you learn the essentials of the language: variables and arithmetic operations. Gain expressive power as you write functions with named parameters and currying. Define your own data types, and integrate all these capabilities into a simple web page. Take advantage of ReasonML's functional data structures with map and reduce functions. Discover new ways to write algorithms with ReasonML's recursion support. Interoperate with existing JavaScript libraries with bindings, and write reactive web applications using ReasonML in tandem with React. Reinforce concepts with examples that range from short, tightly focused functions to complete programs, and practice your new skills with exercises in each chapter.With ReasonML, harness the awesome power of a functional language while retaining the best features of JavaScript to produce concise, fast, type-safe programs.

What You Need:

You'll need to have node.js (version 10.0 or above) and npm (version 5.6 or above). Once you install the bs-platform package and fire up a text editor, you're ready to go. (There are plugins for many popular editors that will make editing easier.)

商品描述(中文翻譯)

ReasonML 是一種新的、類型安全的函數式語言,能編譯成高效且可讀的 JavaScript。ReasonML 可以與現有的 JavaScript 函式庫互操作,並且特別適合與 React 這個最受歡迎的前端框架搭配使用。學習如何利用函數式語言的強大功能,同時保持整個 JavaScript 生態系統的靈活性。今天就開始超越理論,使用 ReasonML 更快速且可靠地完成任務。

ReasonML 是 OCaml 的一種新語法,OCaml 是一種在業界使用超過 20 年的經過考驗的程式語言。ReasonML 的設計旨在讓 JavaScript 程式設計師感到熟悉,ReasonML 代碼編譯成高度可讀的 JavaScript。使用 ReasonML,您可以獲得 OCaml 強大的函數式程式設計特性:強大的靜態類型系統,配備優秀的類型推斷引擎、模式匹配,以及針對不可變變數的函數式程式設計功能。ReasonML 也允許選擇性副作用、變異和物件導向程式設計的靈活性。ReasonML 在純理論世界與 JavaScript 的放任自流方法之間找到了完美的平衡。

在學習語言的基本要素時,開始使用 ReasonML 強大的類型系統:變數和算術運算。當您撰寫具有命名參數和柯里化的函數時,獲得表達能力。定義您自己的數據類型,並將所有這些功能整合到一個簡單的網頁中。利用 ReasonML 的函數式數據結構,使用 map 和 reduce 函數。發現使用 ReasonML 的遞歸支持編寫算法的新方法。通過綁定與現有的 JavaScript 函式庫互操作,並使用 ReasonML 與 React 一起編寫反應式網頁應用程式。通過從短小、緊湊的函數到完整程序的範例來加強概念,並在每一章中通過練習來鞏固您的新技能。使用 ReasonML,充分利用函數式語言的強大功能,同時保留 JavaScript 的最佳特性,以產生簡潔、快速且類型安全的程序。

您需要的工具:

您需要安裝 node.js(版本 10.0 或以上)和 npm(版本 5.6 或以上)。一旦您安裝了 bs-platform 套件並啟動文本編輯器,您就可以開始了。(許多流行編輯器都有插件,可以使編輯變得更容易。)

作者簡介

J. David Eisenberg is a programmer and instructor at Evergreen Valley College in San Jose, California. He is co-author of several books on programming technology (SVG, Elixir, Erlang, and ClojureScript). David's interest in foreign languages has led him to write online tutorials for Korean, Modern Greek, and Russian.He is also a cat person.

作者簡介(中文翻譯)

J. David Eisenberg 是加州聖荷西的常青谷學院(Evergreen Valley College)的一名程式設計師和講師。他是幾本有關程式設計技術(SVG、Elixir、Erlang 和 ClojureScript)的書籍的共同作者。大衛對外語的興趣使他撰寫了韓語、現代希臘語和俄語的線上教學。他也是一位貓咪愛好者。