Error handling with Option/Maybe

Have you ever encountered the Option or Maybe type? It’s a pretty common thing in the Javascript world, especially around the Angular community, but it actually comes from the world of functional programming. Option/Maybe provides a way to communicate the possibility of an error occurring. In this talk Scott¬†Wlaschin goes over a model for how to handle error cases in those pipelined operations in a way that is clean, composable, and unobtrusive.

At one point DDD or Domain Driven Design is referenced. See this presentation for more info on that.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: