Web Development with ReasonML

0
(0)

Web Development with ReasonML
 

  • Author:J. David Eisenberg
  • Length: 208 pages
  • Edition: 1
  • Publisher: Pragmatic Bookshelf
  • Publication Date: 2019-04-05
  • ISBN-10: 1680506331
  • ISBN-13: 9781680506334
  • Sales Rank: #862666 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    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进行Web开发

    ReasonML是一种新的、类型安全的函数式语言,它可以编译成高效、可读的JavaScript。ReasonML与现有的JavaScript库互操作,并与最流行的前端框架之一Reaction配合使用得特别好。了解如何利用函数式语言的强大功能,同时保持整个JavaScript生态系统的灵活性。超越理论,今天就使用ReasonML更快、更可靠地完成工作。

    ReasonML是OCaml的新语法,OCaml是一种在行业中使用了20多年的经过战斗测试的编程语言。ReasonML代码可以编译成可读性很高的JavaScript,其设计初衷是让JavaScript程序员很熟悉。使用ReasonML,您可以获得OCaml&8217;强大的函数式编程功能:具有出色类型推理引擎的强大静态类型系统、模式匹配以及使用不可变变量进行函数式编程的功能。ReasonML还允许灵活地处理选择加入的副作用、突变和面向对象编程。ReasonML达到了纯理论世界和JavaScript的自由放任方法之间的最佳契合点。

    在学习语言的基本要素:变量和算术运算时,开始使用ReasonML强大的类型系统。在使用命名参数和Currying编写函数时获得表现力。定义您自己的数据类型,并将所有这些功能集成到一个简单的网页中。利用ReasonML’的函数数据结构和MAP和REDUTE函数。利用ReasonML的递归支持,发现编写算法的新方法。通过绑定与现有的JavaScript库进行互操作,并结合使用ReasonML和React编写反应式Web应用程序。通过示例强化概念,从简短、高度集中的函数到完整的程序,并通过每章中的练习来练习您的新技能。使用ReasonML,利用函数式语言的强大功能,同时保留JavaScript的最佳功能,以生成简洁、快速、类型安全的程序。

    您需要的:

    您将需要node.js(10.0版或更高版本)和NPM(5.6版或更高版本)。一旦安装了bs-Platform包并启动了文本编辑器,您就可以开始工作了。(许多流行的编辑器都有插件,可以让编辑变得更容易。)

  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册