Functional Exception Handling in Java with Vavr by Grzegorz Piwowarek
Vložit
- čas přidán 6. 08. 2024
- Subscribe to Devoxx on CZcams @ bit.ly/devoxx-youtube
Like Devoxx on Facebook @ / devoxxcom
Follow Devoxx on Twitter @ / devoxx
Exception handling in Java is often considered cumbersome and not very aesthetically appealing. In this session, we'll have a look at how functional languages deal with error handling and how we can adapt those approaches in the world of Java with Vavr.
Simply put, we'll see how can we avoid “throws” by using Optional, Try, Either and by leveraging type-driven-development in general.
Grzegorz Piwowarek
From @CasumoTech
Grzegorz Piwowarek is a hands-on tech lead at @CasumoTech, a trainer at @bottega_it, a blogger at 4comprehension.com.
He was professionally involved in projects involving systems integration, image recognition, and recently in highly-scalable, distributed solutions.
Besides software development, he is a professional yo-yo player and a guitarist in a progressive metal band - Visions of Tondal. - Věda a technologie
0:48 Topic: Exceptions
6:28 Error Handlibg by Go
8:36 Exception Handling anti-pattern in Java
13:50
I was longing for an intro on this subject, great talk.
An example comparing the normal approach and its functional sub would be nice.
What's happening forum?
If only java has a try expression, my life would be easier. 😌
interesting talk