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/
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/
Statement on #Vavr's Future
https://danieldietrich.dev/blog/2024/06/06/statement-on-vavrs-future/
@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😇
#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
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
#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/
Anything know what's going on with #java #vavr? I love working with it, but there have been no new releases for at least 2 years, it seems stuck in 1.0-alpha.
As much as it makes developing with Java so much more enjoyable, I can't justify using it if it's a dead project.
Maybe the #resilence4j folks know?
RT @vavr_io@twitter.com
We need your feedback! Do you use @vavr_io@twitter.com in production? What is your experience? Why not? Please comment! #Vavr