I think I am too dumb for functional programming - /g/ (#105738249) [Archived: 804 hours ago]

Anonymous
6/29/2025, 1:12:07 AM No.105738249
1751150666421891
1751150666421891
md5: 99fa5e9ad428812a9bee5386574d4844🔍
I know I am just used to imperative languages but the leap to functional feels so large.
Replies: >>105738284 >>105738404 >>105738738 >>105738803 >>105738826 >>105739130
Anonymous
6/29/2025, 1:16:58 AM No.105738284
>>105738249 (OP)
You're not just used to imperative languages, it's how computers work. You go to an address and change the memory. Your beautiful math will never be real no matter how much you jerk off to it
Anonymous
6/29/2025, 1:20:58 AM No.105738308
stupid academic wankery no one gives a fuck about in the real world. heckin cool lambda bro.
Anonymous
6/29/2025, 1:31:14 AM No.105738404
>>105738249 (OP)
Lol, just vibecode try cursor. Especially when you learn how to make rulesets for your specific programs.
Anonymous
6/29/2025, 2:17:02 AM No.105738738
>>105738249 (OP)
Use it where it where it makes sense, no need to go all out.

Recursive array functions are pretty dope.
Anonymous
6/29/2025, 2:24:24 AM No.105738803
>>105738249 (OP)
i learned functional programming by just waiting. imperative and OOP languages started stealing features from functional languages (pattern matching, unions, immutable by default, Option<T>, Result<T>, Unit, lambdas) and piece by piece i put it all together. i still don't know what the fuck a monad is though (my best guess is a function that takes in a function as parameter and returns a function).
Replies: >>105739085
Anonymous
6/29/2025, 2:27:16 AM No.105738826
>>105738249 (OP)
I don't know a single functional programmer. All of them are mentally ill and socially retarded.
Anonymous
6/29/2025, 3:06:15 AM No.105739085
>>105738803
>i still don't know what the fuck a monad is though
You named one in your post
>Option<T>, Result<T>
These are just implementations of the Maybe monad -- the monad encapsulates the indeterminate state of T and allows for interacting with its "wrapped" value through mapping/binding/whatever the fuck (if said value exists at all or in the state you expect it to, in the case of Result/Option). For most practical uses, its just baking in the handling of the if/else logic that you'd normally see in a procedural language into a more structured type system
Anonymous
6/29/2025, 3:11:00 AM No.105739130
>>105738249 (OP)
You're just memeing yourself. It's not that hard. Just do it more. Or don't. It's not that important.