FP techniques that will help you write better JavaScript

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • mostly-adequate-guide

    Mostly adequate guide to FP (in javascript)

  • It’s been a while since I focused on FP, but I recall finding this useful quite often and gleaning the concepts from it relatively easily.

    https://github.com/MostlyAdequate/mostly-adequate-guide

    I found a lot of articles like the OP, and ultimately they left me confused about the benefits in the beginning. I found it more useful to avoid one off articles and dig into larger pieces of work where the author put in much more care.

  • ramda

    :ram: Practical functional Javascript

  • I worked on a project that used lodash/fp for a couple of years. It really is game-changing if you have a large object that you need to change in similar ways across different properties.

    Theres also Ramda (https://ramdajs.com/), which I slightly prefer because the documentation is significantly better.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • caniuse

    Raw browser/feature support data from caniuse.com

  • I think `for element of list` nowadays starts to become a realistic choice (without a transpiler) for that: https://caniuse.com/?search=for...of

  • pythonic-ts

    A collection of Python-style utility functions for iterators and collections

  • If anyone needs a typed JS version of Python's range, I prepared [this code](https://github.com/graup/pythonic-ts/blob/main/src/iterators...) to be a 1:1 match with the Python API. It also uses generators.

  • javascript-allonge

    Markdown source for the book "JavaScript Allongé"

  • I ran across this anecdote about how people don't know (or acknowledge?) the existence of the index argument of Array.map. This is a link to the manuscript of the well regarded book on JS FP techniques "Javascript Allonge". The index arg is not mentioned.

    https://github.com/raganwald/javascript-allonge/blob/db7c435...

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Mostly adequate guide to Functional Programming (in JavaScript)

    1 project | news.ycombinator.com | 25 Jul 2023
  • How do you run an effective clean code book club, and looking for homework ideas?

    1 project | /r/ExperiencedDevs | 10 Mar 2022
  • [AskJS] object oriented or functional , which one you guys oftenly use while writing code in vanilla JavaScript?

    1 project | /r/javascript | 15 Feb 2022
  • Functors, Applicatives, and Monads in Pictures

    2 projects | news.ycombinator.com | 21 Oct 2021
  • Having hard times to understand why my code dose'nt work (JS)

    1 project | /r/learnprogramming | 27 Jul 2021