Work Smarter, Not Harder. Memoize It. by@Swordfish
730 reads
730 reads

Work Smarter, Not Harder. Memoize It.

by Randy3mNovember 29th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

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.

Company Mentioned

Mention Thumbnail
featured image - Work Smarter, Not Harder. Memoize It.
Randy HackerNoon profile picture
Randy

Randy

@Swordfish

JS, React, Redux, Ruby, Rails, SQL, Python

About @Swordfish
LEARN MORE ABOUT @SWORDFISH'S
EXPERTISE AND PLACE ON THE INTERNET.

Share Your Thoughts

About Author

Randy HackerNoon profile picture
Randy@Swordfish
JS, React, Redux, Ruby, Rails, SQL, Python

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
L O A D I N G
. . . comments & more!