r/functionalprogramming • • Nov 05 '23

Question Why is functional programming so hard

Throughout my entire degree till now, I’ve been taking OOP. Now I am in a FP course and I am struggling a lot. I understand it’s almost a total different thing. But I just failed a midterm in FP in Ocaml. I swear I could’ve solved the questions with my eyes closed in OOP. What am I doing wrong, why can’t I get a grasp of it. Any tips on how I should approach studying this.

78 Upvotes

87 comments sorted by

View all comments

Show parent comment

2

u/Long_Investment7667 Nov 07 '23

When I started university the “programming” professor started us on scheme (please don’t argue how FP it is) and there were essentially three kinds of students.

  • no experience: they where open to learning it because they had nothing to compare it with. Some succeeded some failed
  • experience in different (non FP) language and for a lack or a better term a “closed mindset” they failed more often
  • experience in a different language and an open mindset: they learned well and learned something about the language they knew before.