I've tried pure FP in ruby. And it was horrendous. The main problem is ruby GC.
But I still using FP paradigm in some cases. Right now I am working on some ecommerce that use rails as backend. For the calculation that involve money (influencing total payment), I make all the variable immutable by default.
You dont even have to ask about the performance. But imo in this case effectiveness is way more important than efficiency.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I've tried pure FP in ruby. And it was horrendous. The main problem is ruby GC.
But I still using FP paradigm in some cases. Right now I am working on some ecommerce that use rails as backend. For the calculation that involve money (influencing total payment), I make all the variable immutable by default.
You dont even have to ask about the performance. But imo in this case effectiveness is way more important than efficiency.