Work Smarter, Not Harder. Memoize It.

Written by Swordfish | Published 2020/11/29
Tech Story Tags: memory | algorithms | javascript | data-structures-and-algorithms | work-smarter | work-smarter-not-harder | memorize-it | productivity

TLDR Computers have this emergent property where as they become more complex they start to do things just like us. Memoization is local memorization of the computer program that gets called again. This is known as functional programming which is composed of pure functions. If you replace the function call with the return value of the function the program will behave exactly the same. The first thing is to set up an array or object literal that will serve as the memoy(yes that is an intentional joke) Lets play around and create a function that creates human readable phone numbers.via the TL;DR App

no story

Written by Swordfish | JS, React, Redux, Ruby, Rails, SQL, Python
Published by HackerNoon on 2020/11/29