Open in app

Sign In

Write

Sign In

Patrick Roza
Patrick Roza

4 Followers

Home

About

Jun 15, 2019

When to return a Result.Error and when to throw an Exception?

In the previous part I introduced the Result class as a means of control flow and error handling. Now I will focus on when to use the Result class to return an Error, and when to throw instead. Part of Functional Programming: Clean architecture and DDD series There appears to…

Java Script

4 min read

Java Script

4 min read


Jun 11, 2019

More advanced pipeline composition

When we add more functional composition tools to our belt, we can start composing usecase pipelines that are both terse and descriptive. Part of Functional Programming: Clean architecture and DDD series Operators From previous article: map: (value => newValue) => Result<newValue, ...> flatMap: (value => newResult) => newResult toTup: (value =>…

Functional Programming

2 min read

More advanced pipeline composition
More advanced pipeline composition
Functional Programming

2 min read


Jun 9, 2019

Result: Composition and Error handling

We can improve our error handling and composition by leveraging a Result class and several other tools from the functional programming world. Part of Functional Programming: Clean architecture and DDD series Instead of throwing errors, we wrap our results. Either the Result is an Error value, or a Success value…

Functional Programming

3 min read

Result: Composition and Error handling
Result: Composition and Error handling
Functional Programming

3 min read


Jun 8, 2019

Component vs Prop drilling in React

Recently, often the question is asked if Hooks and Context replaces Redux. It is more a question of do you need Redux, and perhaps how Hooks and Context can help you write cleaner, more functional, more composable code. Part of Of Hooks and Screens series Hooks by themselves are an…

React

4 min read

Component vs Prop drilling in React
Component vs Prop drilling in React
React

4 min read

Patrick Roza

Patrick Roza

4 Followers
Following
  • Eric Elliott

    Eric Elliott

  • Hugo Rocha

    Hugo Rocha

  • Izaak Schroeder

    Izaak Schroeder

  • Kasper Peulen

    Kasper Peulen

  • Willem Veelenturf

    Willem Veelenturf

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech