Functional Programming In Java 22 - Understanding the Building Blocks of FP_Derviş Mansuroğlu

Veröffentlicht am: 31 Mai 2024
auf dem Kanal: Java Day Istanbul
255
5

Title: Functional Programming In Java 22 - Understanding the Building Blocks of FP

Description: Functional programming promises huge advantages, but it still remains a mystery to many. In this talk, I'll focus on explaining key concepts such as lazy, immutability, currying, composition, and also explain topics such as ADTs, morphisms, lambda calculus and advanced pattern matching in Java 22.

This talk is about the practical use of functional programming in an object-oriented language like Java. We know that it's very difficult to write pure code in a functional style in Java because the language lacks important elements such as immutability, laziness, higher order types, stronger type inference, better function composition and currying, tail-call optimization, and stronger pattern matching. These deficiencies lead to a lower degree of abstraction, poorer decomposition, and we cannot express ourselves as elegantly as we would like. So why should we care about functional programming in Java?

The answer lies in the fact that by learning techniques from other languages, you also become a better developer in the language you normally use. Java 21 now supports "Unnamed Patterns and Variables", and with the existing support for Sealed Interfaces and Record Patterns, some Java code can now be written much simpler and more expressively.

This is an informal look at functional programming, the aging java.util.function library, and the latest additions in JDK22 that bring Java closer to other JVM languages such as Kotlin. The talk is well suited for those who have not engaged much in functional programming, but who wish to get a bit of inspiration.

Bio: Dervis is an experienced Java-developer and principal officer, currently working for the Norwegian Labour and Welfare Administration. He is passionate about programming languages, functional programming and algorithms. Dervis is a Java Champion and the leader of the Norwegian JUG JavaBin (Dukes Choice Award winner in 2019). Dervis has spoken at several international conferences as well as being a regular speaker at local meetups in Norway.


Auf dieser Seite können Sie das Online-Video Functional Programming In Java 22 - Understanding the Building Blocks of FP_Derviş Mansuroğlu mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Java Day Istanbul 31 Mai 2024 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 255 Mal angesehen und es wurde von 5 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!