educative.io

Functional Programming Patterns With RamdaJS! (Yazeed Bzadough)


Building a Wikipedia Search - Getting the Wikipedia URL Creating dynamic Wikipedia search urls (4 min. read) Sorting - Comparators Comparators turn any comparing function into a sorting function, without fretting browser inconsistencies. (5 min. read) Conditional Logic - ifElse Using ifElse in functional pipelines (3 min. read) Conditional Logic - cond Using cond in functional pipelines (5 min. read) Sorting - Sort Functions Overview of Ramda’s sorting functions. (4 min. read) Conditional Logic - when/unless Using when/unless in functional pipelines (4 min. read) Using What We've Learned - Total Cart Price: Solution Review Solution review. View the lesson [here](https://www.educative.io/collection/page/5070627052453888/5738600293466112/5684049913839616). Using What We've Learned - Cheapest Item: Exercise Write a point-free function to return a cart’s cheapest item. Using What We've Learned - Total Cart Price: Exercise Write a point-free function to calculate a shopping cart’s total price in dollars. Introduction - Ramda vs. Lodash and Underscore Lodash and Underscore are great utility libraries that began dying after ES6 went mainstream. Ramda wasn’t just another utility, it was the precedent of practical FP in JavaScript. Underscore faded, but Lodash bounced back and released its own FP derivative. (3 min. read) Pure Functions - The Checklist Pure functions are the atomic building blocks in FP, adored for their simplicity and testability. Not every function is pure, however, and this section discusses how to judge one for yourself. (5 min. read) Pure Functions - Purification Exercises Exercises on making pure versions of impure functions. Pure Functions - Solution Review Review with explanations. (3 min. read) Higher-Order Functions - First-Class Citizen Higher-order functions (HOFs) let you use functions as data, allowing for FP’s most powerful patterns. (5 min. read) Higher-Order Functions - Why They're Nice Our lives revolve around abstraction–the practice of making complex things easier to increase productivity. HOFs can abstract us away from step-by-step procedures, instead opting for readable, reusable functions everywhere. (6 min. read) Function Composition - Lesson + Exercises Getting functions to work together is function composition, and how FPers prefer to structure their programs. (3 min. read, then exercise) Function Composition - Solution Review A review of different solutions and their benefits/drawbacks. (3 min. read) Function Composition - Adding Ramda A comparison of vanilla and Ramda solutions with map. Benefits of Ramda include currying, point-free, and the data-last pattern. (6 min. read) Currying - FP's Secret Sauce An in-depth look at currying and its advantages. (5 min. read) Currying - Spicy Exercises Exercises with problem, solution, and explanation. Pipe and Compose - Pipe You already compose functions. Pipe lets you compose by flowing them left-to-right, improving readability. (4 min. read) Pipe and Compose - Compose Pipe, but in the other direction. (2 min. read) Pipe and Compose - Inspecting With Tap Easily trace pipe and compose calls using tap(). (3 min. read) Introduction - Everything's Right Here <a href="http://Educative.io">Educative.io</a> rocks. I’m not being paid to say that. (1 min. read) Introduction - Who This Course Is For This is an intermediate/advanced JavaScript course. Best taken after building/maintaining a modern web application. (1 min. read) Using What We've Learned - Bang for Your Buck: Exercise Write a point-free function to get the 3 top-rated meals &lt;= a given price. Lenses Exercises - Fix the Flavors: Exercise Using lenses, write a point-free solution to manipulate and return everyone’s favorite ice cream. Building a Wikipedia Search - What We're Building A Wikipedia Search UI using Ramda (1 min. read) Building a Wikipedia Search - Getting Started Clone via Github, checkout the “start” branch, yarn start. The “master” branch has the final code. (1 min. read) Using What We've Learned - Cheapest Item: Solution Review Solution review. View the lesson [here](https://www.educative.io/collection/page/5070627052453888/5738600293466112/5641332169113600). Lenses Exercises - Fix the Flavors: Solution Review Solution review. View the lesson [here](https://www.educative.io/collection/page/5070627052453888/5738600293466112/5694639155707904). Using What We've Learned - Median Paycheck: Exercise Write a point-free function to find the median monthly paycheck above $100,000. Using What We've Learned - Rating Credit Scores: Solution Review Solution review. View the lesson [here](https://www.educative.io/collection/page/5070627052453888/5738600293466112/5730827476402176). Using What We've Learned - Rating Credit Scores: Exercise Write a point-free function that reviews credit scores. Functors - What Are They? A brief introduction to functors, and how they’ll tie into this course. (4 min. read) Building a Wikipedia Search - Making the AJAX Request Transforming the request URL into an AJAX request and receiving JSON. (4 min. read) Using What We've Learned - Bang for Your Buck: Solution Review Solution review. View the lesson [here](https://www.educative.io/collection/page/5070627052453888/5738600293466112/5674248798470144). Using What We've Learned - Median Paycheck: Solution Review Solution review. View the lesson [here](https://www.educative.io/collection/page/5070627052453888/5738600293466112/5659645909663744). Lenses - Longhand Lenses Ramda’s lensProp and lensIndex are convenience functions. Understanding the longhand version primes us to dive even deeper. (3 min. read) Lenses Exercises - Get the Flavors: Solution Review Solution review. View the lesson [here](https://www.educative.io/collection/page/5070627052453888/5738600293466112/5656774724026368). Lenses - Lenses Under the Hood We explore what makes lenses tick, and experiment with functors along the way. (12-15 min. read) Lenses - Composing Lenses To cap things off, let’s talk about how lenses compose. Spoiler alert: it looks backwards, but it’s not. (8 min. read) Lenses Exercises - Get the Flavors: Exercise Using lenses, write a point-free solution to get everyone’s favorite ice cream. Closing Comments - That's All! 1 min. read View the lesson [here](https://www.educative.io/collection/page/5070627052453888/5738600293466112/5666313846390784). Building a Wikipedia Search - Getting the Input Value Using Ramda to get and trim the input’s text value, setting a default if nothing’s passed. (5 min. read) Building a Wikipedia Search - Making a Results Component Making a component that nicely formats our Wikipedia results. (6 min. read) Building a Wikipedia Search - Removing Those Weird Commas ES6 template strings join arrays with commas using the toString() method. We can fix that and improve our UI. (5 min. read) Building a Wikipedia Search - Fixing a Little Bug The app sends AJAX requests even if the input’s empty. We can fix that! (5 min. read) Closing Comments - Contact Me Have questions about Contact Me? Go for it! Lenses - Use With Arrays Lenses are great for arrays too! (2 min. read) Functors - How Ramda Uses Them Dive into Ramda’s map function and how to override it in your functors. (5 min. read) Lenses - Use With Objects Lenses focus on a piece of a data structure. They’re composable and provide great ways to read/update the focused piece. (5 min. read)
About the Functional Programming Patterns With RamdaJS! (Yazeed Bzadough) category [Functional Programming Patterns With RamdaJS! (Yazeed Bzadough)] (1)