3 ms·
Biggest thing I got from functional programming: avoid state if you can. Sometimes functional style isn't as clear (especially recursion for me). But things li
by bennysonething 4y ago
Biggest thing I got from functional programming: avoid state if you can.
Sometimes functional style isn't as clear (especially recursion for me). But things like map and filter are usually a lot easier for me to read than for loops.
- AnimalMuppet 4y agoEspecially, avoid shared mutable state if at all possible. That's the biggest thing I got from FP, too. FP says that shared mutable state is evil, and FP is absolutely right about that.