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.
showing 13 lessons...
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.
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 ->
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.
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
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
Unlike many languages, Booleans in Elm are just a plain union type.
Follow along at http://elm-lang.org/examples/hello-html
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.
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.
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/.
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.