4 ms·
Sure. FP is helpful a little bit with some atomic operations, and processing data from data sources. However applying it to the whole project as the primary par
by tomaszs 6y ago
Sure. FP is helpful a little bit with some atomic operations, and processing data from data sources. However applying it to the whole project as the primary paradigm causes a lot of trouble. Purity comes with some serious drawbacks like desynchronising state risk, additional performance cost, risk of adding unnecessary complexity, code duplication and wrong code organisation.
Especially if it is considered as a competitor to object oriented programming. Unfortunately it is considered that way, and it is really a serious problem today.
People try to do stuff with FP that should be done with OOP and run into serious problems. OOP and FP paradigms work good together, but FP is often overused.