Unlock the Fantastic Secrets: 6 Mind-Blowing Functional Programming Concepts You Actually Need to Master in JavaScript

javascript

Hey there, fellow code enthusiasts! Grab your favorite caffeinated beverage and get comfy, because we’re about to embark on a mind-bending journey into the world of functional programming in JavaScript. Now, I know what you’re thinking: “Functional programming? Isn’t that just for academic types and hipster developers?” Well, buckle up, buttercup, because I’m about to … Read more

JavaScript is Awesome -New Thunk and Currying Hack!

thunk

Thunk A thunk usually refers to a small piece of code that is called as a function; does some small thing; and then JUMPs to another location; which is usually a function; instead of returning to its caller. Assuming the JUMP target is a normal function, when it returns, it will return to the thunk’s caller. The word … Read more

Unlock JS: Powerful REST and SPREAD Magic You Need to Know

three dots

Introduction The rest and spread operators are syntactic features in JavaScript introduced with ECMAScript 2015 (ES6), both denoted by three consecutive dots (). The rest oper- ator is utilized to collect multiple function arguments into a single array, enhancing flexibility and allowing developers to create functions that can accept an indefinite number of parameters. Conversely, … Read more

JavaScript Generators Magic and Their Use Case: Everything Yield Need To Know

javascript

JavaScript generators is an amazing and brilliant concept; yet it’s very confusing when to use them. They let us write infinite loops that terminate. The yield values from functions before they finish and build lazy data structures. The magic lies in the ability of generators functions to be paused and then resumed again. But before … Read more