3 ms·
Imperative styles like yours are readable, and more importantly, hackable. Business processes are rarely set in stone and the above code can be easily modified
by pphysch 4y ago
Imperative styles like yours are readable, and more importantly, hackable.
Business processes are rarely set in stone and the above code can be easily modified, as opposed to a "beautiful" "pure" "correct" ball of functional yarn that must be carefully unwound and rearchitected.
- _v7gu 4y agoYea, because the following equivalent piece of code is much more difficult to read without returns after every statement user |> mmap(get_balance) |> mmap(get_credit_amount)