Learning about functions like `map`, `reduce` and ...
# suitescript
e
Learning about functions like
map
,
reduce
and
filter
dramatically changed the way I approach writing code - for the better, in my opinion; highly recommend learning them if for nothing else than to think about other ways to approach code instead of just writing loops everywhere
👍 4
💯 2
e
❤️ ramda
I learned about functional programming through Haskell, and I am by no means a purist or expert functional programmer, but this book really piqued my interest: http://learnyouahaskell.com/
Not JS, obviously, but still shows lots of interesting patterns/solutions
h
Have you tried Clojure or ClojureScript ? ClojureScript compiles to JS
immutability built in
e
I've not
briefly looked into Elm
c
Ramda... /nightmare
e
That's my fault, not ramdas
c
i think its functional programmings fault. Just not a fan of it (currently)
e
Also, functional programming is not for everyone, especially if you've grown up doing procedural and object-oriented your whole life.
c
yep i would fall into that for sure
e
If you love OOP and are efficient with it, great then do it
I tend to not like it at all
c
Does something like ramda run in the SS environment? While it's kinda head wrecking, the Functional philosophy is something I can get behind.
c
it does run its just BEYOND slow
it has to do w/ the java backend and the translation somewhere
this was about a year ago so maybe its different now
c
@creece Thanks for your insights. 😄
c
yep np.. client side its fast though*
c
Good to know. 🙂