Je suis en train de convertir un projet de #scala vers #java et bien je suis assez agréablement surpris des avancées de #java mais quand même heureusement qu'il y a #vavr https://vavr.io/
Vavr

Vavr is an object-functional library for Java 8+

Statement on Vavr’s Future

Hi guys, as I mentioned in a previous post, I have redirected my energy from maintaining the Vavr project towards other activities. It seems that many people are uncertain about the future of Vavr. Please allow me to clarify a few things.

Daniel’s Journal
Statement on Vavr’s Future

Hi guys, as I mentioned in a previous post, I have redirected my energy from maintaining the Vavr project towards other activities. It seems that many people are uncertain about the future of Vavr. Please allow me to clarify a few things.

Daniel’s Journal

@SusanPotter @routis the question was about #java+functional idioms... So #Kotlin is out of context 😅

I love kotlin, I'm even GDE for this specialty, but if the requirement is Java, then we should not advertise for it. #KotlinFatigue

And yes, #VAVR is old and not maintained a lot... But it still exists and works as a lib😇

@davinkevin @SusanPotter

#vavr is / was? an awesome library. Offers Try, Either, Validation, and immutable collections and many more.

I don't think though that it is being actively maintained.

If you want to learn functional programming I suggest to consider #kotlin

Language has great support for immutable data structures (data classes, immutable collections) and in addition there is #arrow-kt library.

The later is a modern and kotlin idiomatic FP library.

@SusanPotter I used #VAVR a lot before switching to #Kotlin.

Inspired by Scala, every useful functional structure should be available

💡Java Exceptions are not my best friend. When I found replacement for it in Either my approach to coding changed drastically. In below post I wanted to share with you my thoughts on why in code it is better to use Etiher approach, and leave Java exceptions for JVM internals.

https://dev.to/michaltalaga/my-problem-with-java-exceptions-and-remedy-for-it-either-40g9

#java #vavr #either

My problem with Java Exceptions and remedy for it - Either

Recently, I've got big discussion on functional-language approach - Either. For me this is natural...

DEV Community
#java #vavr
The VAVR Try monad makes it easy to deal with exceptions in the normal Java flow through return types.
https://blog.softwaremill.com/exceptions-no-just-try-them-off-497984eb470d
Exceptions? No, just Try them off! - SoftwareMill Tech Blog

There are various ways of handling exceptions. Here is how you can control them in Java with some help of an external library.

SoftwareMill Tech Blog

#java #Java17 #functional #spring #vavr

Using pattern matching with sealed interfaces and the vavr Either type to give a much cleaner way to handle errors in a Spring Rest controller https://softwaremill.com/functional-error-handling-with-java-17/

Functional error handling with Java 17

With Java 17, by using new features like pattern matching and sealed interfaces, it is easier than ever to do error handling in a more functional way.

SoftwareMill