arameakan

arameakan

Are there design patterns for functional programming?

Hello everybody,

I wonder is there design patterns for functional programming?

Marked As Solved

kokolegorille

kokolegorille

You might also enjoy this talk. It is based on F#, but still apply.

Also Liked

PragTob

PragTob

:wave:

Hello there! Yes there are. Guessing that you come with this question from an OOP background I can fully recommend this book: Functional Programming Patterns in Scala and Clojure

I know it’s not elixir, but it helped me a lot back in the day while programming Ruby :slight_smile:

The “patterns” look quite different though as they center around functions most of the time. This stackexchange discussion might also help.

I also found a talk which seems to hit on the topic - I have only skimmed it so far though.

Last Post!

tty

tty

I would like to point out that design patterns for FP =/= design patterns for concurrent distributed programming, given that this question was asked in an Elixir forum. Fred Hebert’s Erlang in Anger is an easy reading for the later.

Where Next?

Popular in Questions Top

vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New

Other popular topics Top

Qqwy
Update: How to use the Blogs & Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3271 130579 1222
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 54996 245
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
saif
Hello everyone, Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New

We're in Beta

About us Mission Statement