DEV Community

Discussion on: Do you need Design Patterns in Functional Programming?

Collapse
 
siy profile image
Sergiy Yevtushenko

FP also has its own patterns. In particular Monad is one of such patterns.

Collapse
 
patferraggi profile image
Patricio Ferraggi

Totally true, but this was more of a comparison between the patterns of the gang of four book to functional programming, not the other way around. But yes, functional programming has its own patterns though I think they are much smaller and simpler

Collapse
 
siy profile image
Sergiy Yevtushenko

Well, from my point of view they are not simpler, but different. The "apply my function when data available" way of thinking behind monads is a true pleasure after countless "if's" of traditional imperative code.