Best of Functional ProgrammingDecember 2023

  1. 1
    Article
    Avatar of 30seconds30 seconds of code·2y

    Function composition in JavaScript

    Function composition in JavaScript is the process of combining multiple functions to produce a new function. It provides readability, reusability, and modularity.

  2. 2
    Article
    Avatar of asayerasayer·2y

    Forever Functional: Maximize JavaScript's Performance WITHOUT Transducers

    The article discusses different solutions for optimizing long sequences of operations on JavaScript arrays without using transducers. It starts with a basic solution and gradually introduces more general and simplified methods. The final solution allows for any sequence of mapping and filtering operations, with optional reducing steps.

  3. 3
    Article
    Avatar of 30seconds30 seconds of code·2y

    An introduction to functional programming

    Functional programming is a programming paradigm that emphasizes the application of functions and avoids changing state and mutable data. Core concepts include pure functions, immutability, higher-order functions, and recursion. Benefits of functional programming include easier reasoning about code, testability, and reusability.

  4. 4
    Article
    Avatar of 30seconds30 seconds of code·2y

    Understanding JavaScript currying

    Currying is a process that transforms a function that takes multiple arguments into a series of functions that each take a single argument. This makes code more flexible and reusable. In JavaScript, currying can be done by creating a curry() function using recursion. Variadic functions, which accept a variable number of arguments, require additional considerations for currying.