Changelog

Functional Programming Icon

Functional Programming

A programming paradigm that treats computation as the evaluation of mathematical functions.
6 Stories
All Topics

Thoughtbot Icon Thoughtbot

The mechanics of Maybe

Joël Quenneville: Our world is full of uncertainty. This uncertainty bleeds into our programs. A common way of dealing with this is null/nil. Unfortunately, this leads to even more uncertainty because this design means any value in our system could be null unless we’ve explicitly checked it’s presence. Imagine how many developer-hours are wasted globally each year dealing with null/nil. The number would probably astound us. The major advantage of guard clauses is to suss out invalid inputs (often nils) at the perimeter of your program/module/function, so the rest of your code doesn't have to concern itself with these uncertainties. But Maybe there's another way... In Elm, all values are guaranteed to be present except for those wrapped in a Maybe. This is a critical distinction. You can now be confident in most of your code and the compiler will force you to make presence-checks in places where values are optional. Click through to learn the mechanics of it all.

read more...
logged by @jerodsanto 2018-02-12T15:23:00.040804Z permalink #fp #elm

José Valim Avatar The Changelog #194

Elixir and the Future of Phoenix with José Valim

José Valim joined the show to talk about Elixir. We learned about the early days of José's start as a programmer. José took us back to the beginning of Elixir and shared why Erlang got him so excited, we broke down features of the language, we talked about functional programming, concurrency, developing for multi-core systems, we talked about the Elixir community, the future of Phoenix, Ecto, and more.

read more...
Play
logged by @logbot 2016-02-09T10:15:00Z permalink #elixir #fp
0:00 / 0:00