Introducing Rescript: Functional Programming for Web Applications

Yang, Danny

  • 出版商: Apress
  • 出版日期: 2022-12-28
  • 售價: $1,500
  • 貴賓價: 9.5$1,425
  • 語言: 英文
  • 頁數: 263
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1484288874
  • ISBN-13: 9781484288870
  • 相關分類: 使用者介面 UI程式語言
  • 海外代購書籍(需單獨結帳)

商品描述

This book serves as a succinct guide on ReScript, a functional language for building web applications. Using examples of ReScript language features along with explanations of fundamental concepts in functional programming, this book will show web developers with a background in JavaScript how to effectively use ReScript to its full potential.

In Introducing ReScript, you'll learn how to use features in ReScript that JavaScript lacks, such as type inference, null-safety, algebraic data types, pattern matching, and more. Along the way, you'll pick up functional programming concepts like immutability and higher-order functions. You'll also gain a sense of how ReScript works under the hood and how to leverage interoperability between ReScript and JavaScript.

Whether you're a web developer interested in dabbling with functional programming or you just want to learn how to write safer and cleaner code for web applications, this book is a great way for you to get started with ReScript.

What You Will Learn

  • Use ReScript to write clean, safe, and elegant software
  • Understand the features of ReScript that set it apart from JavaScript, such as type inference, null-safety, and algebraic data types
  • Explore functional programming concepts like immutabhigher-orderr order functions, and pattern matching
  • Use popular JavaScript libraries and frameworks in your ReScript code and integrate ReScript code into JavaScript codebases

Who This Book Is For

Web developers that want a strictly typed, safer alternative to JavaScript, as well as web developers interested in learning functional programming and leveraging the elegant and powerful functional features in ReScript.

商品描述(中文翻譯)

這本書是一本關於 ReScript 的簡明指南,ReScript 是一種用於構建網絡應用程序的函數式語言。通過使用 ReScript 語言特性的示例以及對函數式編程基本概念的解釋,本書將向具有 JavaScript 背景的網絡開發人員展示如何充分發揮 ReScript 的潛力。

在《介紹 ReScript》中,您將學習如何使用 ReScript 中 JavaScript 不具備的功能,例如類型推斷、空值安全、代數數據類型、模式匹配等。在此過程中,您還將掌握不可變性和高階函數等函數式編程概念。您還將了解 ReScript 的內部運作方式以及如何利用 ReScript 和 JavaScript 之間的互操作性。

無論您是一名對函數式編程感興趣的網絡開發人員,還是想學習如何為網絡應用程序編寫更安全、更乾淨的代碼,本書都是您入門 ReScript 的絕佳方式。

您將學到以下內容:
- 使用 ReScript 編寫乾淨、安全、優雅的軟件
- 了解 ReScript 的特點,例如類型推斷、空值安全和代數數據類型,這些特點使其與 JavaScript 有所不同
- 探索不可變性和高階函數等函數式編程概念
- 在 ReScript 代碼中使用流行的 JavaScript 库和框架,並將 ReScript 代碼集成到 JavaScript 代碼庫中

本書適合對 JavaScript 感興趣的網絡開發人員,他們希望找到一種嚴格類型的、更安全的替代方案,以及對學習函數式編程和利用 ReScript 中優雅且強大的函數式特性感興趣的網絡開發人員。

作者簡介

Danny Yang is a professional software engineer at Meta working on infrastructure for WhatsApp. He has previously worked on Facebook Messenger, including the web interface which was written in ReScript. His technical interests include functional programming, compilers, and data visualization, which he writes about on his blog.

作者簡介(中文翻譯)

Danny Yang是Meta的專業軟體工程師,負責WhatsApp的基礎架構開發。他之前曾在Facebook Messenger工作,包括使用ReScript編寫的網頁介面。他在技術上對函數式編程、編譯器和資料視覺化有濃厚興趣,並在自己的部落格上撰寫相關文章。