4 ms·
How would that help children? You want to make it easy to get into. I think imperative is simpler than functional. Let them learn to crawl first.
by esafak 3y ago
How would that help children? You want to make it easy to get into. I think imperative is simpler than functional. Let them learn to crawl first.
- sidlls 3y agoIt depends on the complexity of the program/problem being solved. I think it’s conceptually simpler, for example, to demonstrate how a function that can’t have side-effects works than one that doesn’t by pure “accident”. The real trouble is when you want the program to do anything actually useful, like interact with anything (input/output). And since that’s where the vast majority of programming is spent, I tend to agree that imperative first is a better approach.