3 ms·
Functional is easier to reason about, if you are the kind of person who prefers reasoning in that way. For some people, it fits the way they think better. For
by AnimalMuppet 4y ago
Functional is easier to reason about, if you are the kind of person who prefers reasoning in that way. For some people, it fits the way they think better. For others, it doesn't.
But imperative is still the default first approach that everybody is taught. For those whose minds fit better with functional, when they encounter functional programming, it's like being let out of prison. It's amazing. The problem comes when they assume that it will be the same for everyone, and if someone else doesn't have the same experience, it's because they haven't "gotten" functional yet. No, some peoples' minds find imperative to be a more natural way to think.
So: Learn some functional. Learn it well enough to see if it fits how you think. If it does, great! And if it doesn't, also great! Then, primarily go with the tool that fits you.