Write functional code when it benefits you
- ·
- Telegram
- ·
- Newsletter
Functional code can both clean things up and make them impossible to understand. Refactor common loops into functional calls, but don't write stupidly complex reduce()s just to avoid writing a loop. There's a use case for both.