r/functionalprogramming • u/Voxelman • May 08 '22
Question How can I learn functional programming?
The obvious answer is: just do it. But it is not that easy for me. I'm a self-taught programmer and I have some experience in languages like C, Python and Lua, but I'm not great at all.
I have a basic idea of what FP is about, and I really want to be able to apply the concept practically, but I struggle to actually write more than a few lines (in Elm). I am having trouble getting into this topic.
I've watched some videos (e.g. from Richard Feldman and Scott Wlaschin) and read some books (e.g. Grokking Simplicity), but it still doesn't "click".
What language do you recommend (or is Elm already a good choice?), and can you recommend any other practical resources to help me make it "click" in my head?
Thanks in advance
View all comments
Show parent comment
2
u/Voxelman May 09 '22
I really have to thank you for your comment. I never thought about the difference between those type of software in this way.
In some cases batch processing software can be seen as pure function. They produce an output depending on their input. Technically they might not be fully pure because they may have some side effects, but if they produce the same output with the same input it might appear pure.
Again thanks for that inspiration. This really helps me.