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/7h4tguy Nov 08 '23

You do realize that some people can go entire days without needing to sound smart.

If you said functions without side effects 95% of those you're trashing will know exactly what that is (let's ignore nondeterminism because most people aren't putting random number generators in their day to day imperative methods).

1

u/kinow mod Nov 08 '23

The comment you replied to said programmers could go their entire careers without knowing referential transparency. Maybe it had no need to capitalize the entire careers part.

But your reply was addressing the user directly, implying s/he was sounding smart. This does not address his argument, but himself directly (ad hominem).

You are free to reply to the comment and say you do not agree, but please try to remain calm and focus on the arguments. Repeated issues like these lead to user bans, which honestly isn't very helpful in the end.

Comment removed.