Egghead Instructor Enrico Buonanno

Enrico Buonanno

I obtained an MS in Computer Science at Columbia University in 2001 and have been working as a software developer and architect since. I worked in FinTech, online auctions and other areas, using a number of different languages and technologies. I wrote a book on Functional Programming in C# with Manning.



Unlock all of Enrico's PRO Lessons
click for instant access!

Browse Enrico Buonanno's lessons.

showing 13 lessons...

Use Type Aliases with Records in Elm

Update Elm Records with the Pipe Operator

Create and Access Records in Elm

Model Simple Structures with Tuples in Elm

Explore the Elm Type System with the Elm Repl

Add Type Annotations to Values and Functions in Elm

Pattern Match Expressions with Elm's Boolean Type

P

Use Single-Constructor Union Types in Elm to Prevent Invalid Data

P

Handle Errors with Elm’s Result Type

P

Model Data with Elm's Recursive Union Types

P

Represent Absent Data with Elm’s Maybe Type

P

Construct Lists with Elm’s List Type

P

Model Data with Simple Union Types in Elm

P

Use Type Aliases with Records in Elm

2:51 elm

Records in Elm are very basic structures. In this lesson we'll be going over how to add more meaning and robustness to these simple Records.

type alias allows you to specify types for specific fields within your Records, we'll learn why this is useful and how we can even constrain functions to certain types of Records.

Update Elm Records with the Pipe Operator

5:32 elm

In this lesson, we will look at updating a Record's value. We'll see how we can keep simply update a single field of a record without changing the rest by using a function and a pipe -> | operator.

We'll also see how we can update multiple values with a comma separated list as well as look how to update deeply nested values.

Create and Access Records in Elm

3:50 elm

Records in Elm are very similar to Objects in Javascript. They are useful to represent domain entities and other program data.

In this lesson we'll go over how to create Records, use them in functions, and how to access data from them!

Model Simple Structures with Tuples in Elm

7:12 elm

Tuples are a very simple way of associating values to form a data structure. They can be used to model simple structures in your program and often appear in the APIs of the Core library.

In this lesson learn how alias types, and destructure tuples in function arguments. To follow along you need the Elm REPL and the online editor

Explore the Elm Type System with the Elm Repl

2:17 elm

In this lesson we'll use the Elm REPL to learn about the various types in Elm, such as String, Bool, Float, and Int. We'll also see how all operators in Elm are just functions.

Add Type Annotations to Values and Functions in Elm

2:55 elm

Type annotations are options in Elm. Adding type annotations can bring a good deal of clarity about which types you are using and what your program does with them

In this lesson we'll be adding type annotations to this Hello World program

Pattern Match Expressions with Elm's Boolean Type

1:00 elm PRO

Unlike many languages, Booleans in Elm are just a plain union type.

Follow along at http://elm-lang.org/examples/hello-html

Use Single-Constructor Union Types in Elm to Prevent Invalid Data

12:06 elm PRO

In this lesson you will learn to use Elm's type and module system to make invalid data unrepresentable, a robust approach to ensure that your data is always consistent!

You should know the basics of union types before tackling this content, they're explained here in Define simple union types in Elm.

You can follow along using any editor and Elm reactor; if you need help with the setup, watch Installing and setting up Elm.

Handle Errors with Elm’s Result Type

1:48 elm PRO

The Result type represents the outcome of an operation that may result in an error.

The documentation is available here. To follow along, get the Elm REPL.

elm tutorial about Model Data with Elm's Recursive Union Types

Model Data with Elm's Recursive Union Types

1:09 elm PRO

Recursive Union Types in Elm enable you to simply and effectively model list-like or tree-like structures.

For an explanation of simple union types, watch Define simple union types in Elm.

Represent Absent Data with Elm’s Maybe Type

1:29 elm PRO

An important union type of the Core library, Maybe is used to represent the possible absence of data.

Follow along the documentation at http://package.elm-lang.org/packages/elm-lang/core/latest/Maybe and download the Elm REPL from http://elm-lang.org/.

Construct Lists with Elm’s List Type

3:27 elm PRO

List is a union type that is recursively defined with Cons.

Follow along with the online editor at http://elm-lang.org/examples/hello-html.

Model Data with Simple Union Types in Elm

3:30 elm PRO

In this video you will learn about union types in Elm. Union types have no equivalent in mainstream languages like Java or JS, but they provide a powerful way to model your program's data. We'll also see how the values in union types aren't just values, they're functions! So we'll see how we can leverage this to do some powerful things.

Follow along using this online Elm editor.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?