DEV Community

Discussion on: State (in JavaScript) Explained by Cooking A Simple Meal

Collapse
 
nielsbom profile image
Niels Bom

In this case I’d like to think of functional programming as transforming data, or specifically pasta. You’d take a pasta data structure, pass that to a ‘cook’ function, pass a sauce data structure to a ‘heat’ function, then both to a ‘serve’ function which results in a steamy plate of noodly nutrients.

Ramen 🙏