DEV Community

Discussion on: Explain functional programming like I'm five

Collapse
 
whoisryosuke profile image
Ryosuke

Hey little Function. Bring me back one thing at a time. And when you do it, don't multi-task. I want you to be really good at one thing.

Why you ask? Because it's more predictable, especially when I have a lot kids (like you Function), and they all do something different. I need to know when I ask you for something, I'll get something back.

Don't tell anyone else what you're doing, and don't do anything extra like write this in your diary. Just do what I ask. You might not get what I ask, then try writing in your diary, but have nothing to write! So just do what I ask, and I'll have another kid write in the diary for you.