By Luis Atencio


Functional Programming in JavaScript teaches JavaScript builders useful thoughts that may enhance extensibility, modularity, reusability, testability, and function. via concrete examples and jargon-free factors, this e-book teaches you the way to use useful programming to real-life improvement tasks

Purchase of the print publication features a unfastened publication in PDF, Kindle, and ePub codecs from Manning Publications.

About the Technology

In complicated net functions, the low-level info of your JavaScript code can imprecise the workings of the method as a complete. As a coding variety, practical programming (FP) promotes loosely coupled relationships one of the parts of your software, making the large photograph more straightforward to layout, converse, and maintain.

About the Book

Functional Programming in JavaScript teaches you concepts to enhance your net functions - their extensibility, modularity, reusability, and testability, in addition to their functionality. This easy-to-read publication makes use of concrete examples and transparent causes to teach you the way to exploit sensible programming in genuine existence. if you are new to practical programming, you are going to savour this guide's many insightful comparisons to significant or object-oriented programming that assist you comprehend sensible layout. by way of the tip, you are going to take into consideration program layout in a clean new method, and you'll even develop to understand monads!

What's Inside

  • High-value FP ideas for real-world uses
  • Using FP the place it makes the main sense
  • Separating the good judgment of your approach from implementation details
  • FP-style errors dealing with, checking out, and debugging
  • All code samples use JavaScript ES6 (ES 2015)

About the Reader

Written for builders with a great snatch of JavaScript basics and net software design.

About the Author

Luis Atencio is a software program engineer and architect development company functions in Java, Hypertext Preprocessor, and JavaScript.

Table of Contents


  1. Becoming useful
  2. Higher-order JavaScript

  4. Few info buildings, many operations
  5. Toward modular, reusable code
  6. Design styles opposed to complexity
  7. PART three improving YOUR sensible SKILLS

  8. Bulletproofing your code
  9. Functional optimizations
  10. Managing asynchronous occasions and data

Show description

Read or Download Functional Programming in JavaScript: How to improve your JavaScript programs using functional techniques PDF

Best object-oriented software design books

Guide to the unified process featuring UML, Java, and design patterns

The UML, or Unified Modeling Language, is the de facto average followed by way of the thing administration staff (OMG) and via just about all proprietors of item modeling instruments. The Unified method is explicitly designed to paintings with the UML and is an entire layout process overlaying nearly all of the existence cycle of a software program product.

JBoss at Work: A Practical Guide

Along with a few famous open resource items, JBoss is extra a relatives of interrelated providers than a unmarried monolithic program. yet, as with every device that is as feature-rich as JBoss, there are variety of pitfalls and complexities, too. such a lot builders fight with a similar matters whilst deploying J2EE purposes on JBoss: they've got difficulty getting the numerous J2EE and JBoss deployment descriptors to interact; they've got trouble checking out tips on how to start; their initiatives do not need a packaging and deployment procedure that grows with the applying; or, they locate the category Loaders complicated and do not know the way to exploit them, that may reason difficulties.

Object databases in practice

Myths approximately object-oriented databases are rampant. This publication debunks them, so database directors and bosses could make trained judgements concerning the know-how. This ebook provides accomplished assurance of the "pros and cons" of object-oriented databases, aiding managers and directors make a decision even if to enforce this robust know-how.

Building Web Applications with ADO.NET and XML Web Services

Tips on how to construct a data-intensive net software with XML internet prone and ADO. web! Richard Hundhausen, Steven Borg, Cole Francis, and Kenneth Wilcox have mixed their years of workmanship during this helpful source to educate you ways a customary stressed out company can leverage net providers in B2B trade.

Extra info for Functional Programming in JavaScript: How to improve your JavaScript programs using functional techniques

Example text

Object-oriented programming 25 paradigms into a single language. JavaScript has a similar capability, and mastering it involves learning to use a combination of both; deciding where to draw the line depends on personal preference and the demands of the problem you’re tackling. Understanding where functional and object-oriented approaches intercept and differ can help you transition from one to the other, or think in terms of either one. Consider a simple model for a learning-management system involving a Student object.

Freeze() can also immobilize inherited attributes. So freezing an instance of Student works exactly the same way and follows the object’s prototype chain protecting every inherited Person attribute. 3. freeze(). 3 Although the Person type has been frozen, its internal object properties (like _address) haven’t. country is eligible to be changed at any time. Because only the top-level variables are frozen, this is a shallow freeze. _country = 'France'; //-> allowed! freeze() is a shallow operation.

Suppose you’re tasked with writing a program that computes the average grade for students who have enrolled in more than one class. 5 (for a full explanation of what each of these functions does, you can visit the appendix for directions on where to find the proper documentation). A function chain is a lazy evaluated program, which means it defers its execution until needed. This benefits performance because you can avoid executing entire sequences of code that won’t be used anywhere else, saving precious CPU cycles.

Download PDF sample

Rated 4.67 of 5 – based on 35 votes