GithubHelp home page GithubHelp logo

packtpublishing / mastering-javascript-functional-programming Goto Github PK

View Code? Open in Web Editor NEW
74.0 6.0 45.0 87 KB

Mastering JavaScript Functional Programming, published by Packt

License: MIT License

JavaScript 99.51% HTML 0.49%

mastering-javascript-functional-programming's Introduction

Mastering JavaScript Functional Programming

This is the code repository for Mastering JavaScript Functional Programming, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.

About the Book

Functional programming is a programming paradigm for developing software using functions. Learning to use functional programming is a good way to write more concise code, with greater concurrency and performance. The JavaScript language is particularly suited to functional programming.

This book provides comprehensive coverage of the major topics in functional programming with JavaScript to produce shorter, clearer, and testable programs.

You’ll delve into functional programming; including writing and testing pure functions, reducing side-effects, and other features to make your applications functional in nature.

Specifically, we’ll explore techniques to simplify coding, apply recursion for loopless coding, learn ways to achieve immutability, implement design patterns, and work with data types.

By the end of this book, you’ll have developed the JavaScript skills you need to program functional applications with confidence.

Instructions and Navigation

All of the code is organized into folders. Each folder starts with a number followed by the application name. For example, Chapter02.

The code will look like the following:

{
 if( (result != VK_SUCCESS) || 
    (extensions_count == 0) ) { 
  std::cout << "Could not enumerate device extensions." << std::endl; 
  return false;
} 

Related Products

Download a free PDF

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.

https://packt.link/free-ebook/9781839213069

mastering-javascript-functional-programming's People

Contributors

dominicpereira92 avatar packt-itservice avatar packtutkarshr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

mastering-javascript-functional-programming's Issues

Chapter 7, question 7-1 confusion

Hello, I went over the 7th chapter and there is a question that made me a little confused.

7.1. Sum as you will: The following exercise will help you understand some of
the concepts we dealt with in this chapter, even if you solve it without using
any of the functions we looked at. Write a sumMany() function that lets you
sum an indeterminate quantity of numbers, in the following fashion. Note that when
the function is called with no arguments, the sum is returned.
let result = sumMany((9)(2)(3)(1)(4)(3)());

The number 9 is not a function, so the error that is immediately being triggered is:

console.log((9)());
               ^

TypeError: 9 is not a function

Is there a typo by any chance? I trying different ways to avoid this error, but not sure if I am doing anything wrong.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.