Skip to main content
Spotify for Podcasters
Pipesicle

Pipesicle

By Nadinda Rachmat

Nadinda and Tristan talk about functional programming
Available on
Google Podcasts Logo
Pocket Casts Logo
RadioPublic Logo
Spotify Logo
Currently playing episode

Index 0: How I got into functional programming - Nadinda's version

PipesicleJan 31, 2021

00:00
30:44
Index 2: Learn Elm-flavored Haskell by binding love

Index 2: Learn Elm-flavored Haskell by binding love

The program we wrote is available on Repl.it at https://repl.it/@tmcl1/BindYourLove#Main.hs

It's also available on github at https://github.com/tmcl/BindYourLove


Feb 14, 202132:29
Index 1: Piping, currying and the order of function parameters

Index 1: Piping, currying and the order of function parameters

In this episode, we discuss piping in Elm and Elixir, we discuss currying functions and we also talk a bit about why functions parameters go in different orders between Elm and Elixir, and how that works out in practice.

Tristan tries to read out some code examples. During the discussion on currying, he reads some javascript:

First, the uncurried, natural form:

function (x, y) { return x + y; }

and then, the curried javascript form:

function (x) { return function (y) { return x + y; }; }

Later, in the discussion on function parameter order in Elixir vs Elm, he compares some Elm code in piped and unpiped form with some Elixir code in piped and unpiped form.

First, piped Elm:

getPeople source |> List.filter (hasMinimumAge 20)

Second, unpiped Elm:

let people = getPeople source in List.filter (hasMinimumAge 20) people

Next, piped Elixir:

getPeople source |> Enum.filter(hasMinimumAge 20)

And finally, unpiped Elixir:

people = getPeople source Enum.filter(people, hasMinimumAge 20)

Reach out to Nadinda on Twitter/Instagram @nadindadev and Tristan on Twitter @tmcll.

Thanks, see you next time!

Feb 07, 202125:57
Index 0: How I got into functional programming - Nadinda's version

Index 0: How I got into functional programming - Nadinda's version

Welcome to our first episode. We mention Outreachy in this episode. 

Feel free to reach out to us at @nadindadev on Twitter/Instagram or @tmcl on Twitter.

Jan 31, 202130:44