Agreed. Imperative was clearer to me in these examples. I use a combo of programming paradigms personally. Depends on the the situation.
The FP vs. OOP dichotomy is silly. They are and can be compatible with each other. In general, I take advice that suggests to use X in every situation with a grain of salt.
Agreed. Imperative was clearer to me in these examples. I use a combo of programming paradigms personally. Depends on the the situation.
The FP vs. OOP dichotomy is silly. They are and can be compatible with each other. In general, I take advice that suggests to use X in every situation with a grain of salt.
Assuming a little bit of JS knowledge the declarative approach is absolutely clear.
Of course to appreciate the declarative style you have to know the language or the used functions.
Anyway, as I said in the article,there's no best choice. Any situation needs the right approach.