Re:Learn You a Haskell for Great Good
by dvlsg on Tuesday August 21, 2018 @04:13PM
(#17813315)
I think one of the most important things I learned from functional programming was how to consider and handle purity and side effects.
Not necessarily by wrapping everything in IO monads in my non-functional code or anything like that. But trying to keep bits of business logic in pure functions (where possible, of course) sure makes my job easier.
Re:Learn You a Haskell for Great Good
by lmm on Tuesday August 21, 2018 @05:13PM
(#17813897)
It's very easy to give up in other languages. Haskell forces you to find a pure way by giving you no other alternative - and most of the time, a pure way is actually easy once you try.
Not necessarily by wrapping everything in IO monads in my non-functional code or anything like that. But trying to keep bits of business logic in pure functions (where possible, of course) sure makes my job easier.