DEV Community

Discussion on: Functional Programming in Ruby – State

Collapse
 
kputra profile image
K Putra • Edited

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.