DEV Community

Discussion on: Tell me a coding confession

Collapse
 
david_j_eddy profile image
David J Eddy

I don't understand functional programming.

Collapse
 
kspeakman profile image
Kasey Speakman

We (FP programmers) are great at making it not very understandable.

Collapse
 
jdsteinhauser profile image
Jason Steinhauser

I've been preaching functional programming for several years now, and I still don't even grasp all the concepts.

Collapse
 
rhymes profile image
rhymes

FP is hard!

Collapse
 
rhymes profile image
rhymes

I think if you go down the rabbit hole of CSP, monads, combinators than it really gets trick but the basics are simpler than some people make them to.

You don't need to have a "pure" functional language to take advantage of it.

Use functions without side effects, pass functions as arguments (you do this all the time if you work with JavaScript and callbacks), envision your code as a series of composable operations instead of telling something to change state.

It's perfectly fine if you don't do it all time, or ever :D

Chances are you're already doing without knowing it.