Ankita Sharmacodecraftbyankita.hashnode.dev·Mar 23, 2024Optimizing React Components: Harnessing the Power of Pure Component and React.memo()What is a Pure component and pure function? Based on the concept of purity in programming paradigms, a function is said to be pure if it meets the following two conditions: Its return value is only determined by its input values Its return value is...DiscussReact
Akash Thoriyaakashthoriya.hashnode.dev·Feb 1, 2024Pure FunctionsExpert-Level Explanation A pure function in JavaScript is a specific kind of function that always produces the same output given the same input and does not cause any observable side effects like modifying global objects or state. Creative Explanatio...DiscussJavaScript Fundamentals for InterviewsJavaScript
Nikhil AkkiPronikhilakki.in·Nov 4, 2023Func-tional Programming: Where Code Meets Pure-suitIntroduction Functional programming (FP) is a paradigm in software development that treats computation as the evaluation of mathematical functions and avoids changing state and mutable data. It's rooted in lambda calculus and is gaining popularity du...DiscussPython DevelopmentFunctional Programming
Lim Woojaejaylog.hashnode.dev·Oct 25, 2023[JavaScript] Pure Function for Clean CodeIntroduction in this article, I will be talking about pure vs impure function, and why it is a good practice to always try to use pure function if we can. A pure function does not only exist in JavaScript. You can adopt this in almost every programmi...DiscussJavaScriptpure functions
Matheus Gomesmgodev.hashnode.dev·Sep 9, 2023Understanding Pure Functions in JavaScript: A Guide to Immutability and Predictable CodeIntroduction In the world of JavaScript programming, pure functions are a fundamental concept that can greatly improve the quality and maintainability of your code. They are a cornerstone of functional programming and offer numerous benefits, includi...Discuss·50 readsJavaScript
Sourav-nathtechwala.hashnode.dev·Jul 27, 2023My learning about Pure Components in React.jsWhat is a pure function? Pure functions only perform a calculation and nothing more. A pure function follows these rules: It never changes any variable or object that existed before the function was called. For eg. let variableDeclared = 0; cons...DiscussReact
Pankaj Barnwalbarnwalp.hashnode.dev·Jul 1, 2023Is Javascript a Functional Programming Language?Well to give you a short answer, it's complicated. you would find people that say that it is and it isn't. Today we will try to understand why this is a wrong question. It's not important whether Javascript is a functional language or not. The only t...DiscussJavaScript
Mohamed Abdellahi Haibeltymohamedabdellahihaibelty.hashnode.dev·May 14, 2023React.useEffect(): The Ultimate Guide to Managing Side Effects in Functional ComponentsAre you a React developer struggling to wrap your head around the useEffect hook? You're not alone! Despite its popularity, this hook can be tricky to use correctly and efficiently. But fear not! In this post, we'll dive deep into the useEffect hook ...Discuss·1 like·63 readsReact
haresh lakhwanidailylearn.hashnode.dev·Apr 15, 2023The Power of Pure Functions: Making Your Code More Predictable and MaintainableIn this blog, we are going to learn about some of the javascript functions related topics that are mainly asked in interviews but we also use these in our day-to-day code. Pure Functions: The function which has no side effects and is given the same ...Discuss·35 likes·165 readsJavaScript
CS Toracstora.hashnode.dev·Mar 22, 2023Functional Programming In JavaScript for BeginnersThis is the first of a five-part series What is Functional Programming? Functional programming is a style of creating programs that: Encourages the use of functions that are self-dependent and do not modify or depend on external values outside of th...Discuss·3 likes·156 readsJavaScript