- eBook:Web Development with ReasonML: Type-Safe, Functional Programming for jаvascript Developers
- Author:J. David Eisenberg
- Edition:1 edition
- Data:April 5, 2019
- Pages:208 pages
- Format:PDF, ePUB
ReasonML is a new syntax for OCaml, a battle-tested programming language used in industry for over 20 years. Designed to be familiar to jаvascript programmers, ReasonML code compiles to highly readable jаvascript. 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 jаvascript.
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 jаvascript 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 jаvascript to produce concise, fast, type-safe programs.
2. Writing Functions
3. Creating Your Own Data Types
4. Interacting with Web Pages
5. Using Collections
6. Repeating with Recursion
7. Structuring Data with Records and Modules
8. Connecting to jаvascript
9. Making Applications with Reason/React