Functional Programming
-
Core Java
Using Java 8 Optionals: Perform Action Only If All Are Present
Java’s Optional class provides a container object which may or may not contain a non-null value. This is useful for…
Read More » -
Software Development
Object-Oriented vs. Functional Programming: A Comparison
Object-Oriented Programming (OOP) and Functional Programming (FP) are two prominent paradigms in software development. Both approaches offer distinct methodologies for…
Read More » -
Software Development
On Tail Call Optimisation
If you are interested in functional programming as many of our craftspeople are, you will have heard talk about tail…
Read More » -
Core Java
Functional vs Imperative Programming. Fibonacci, Prime and Factorial in Java 8
There are multiple programming styles/paradigms, but two well-known ones are Imperative and Functional. Imperative programming is the most dominant paradigm…
Read More » -
Core Java
Functional Data Structures in Java 8 with Javaslang
Java 8’s lambdas (λ) empower us to create wonderful API’s. They incredibly increase the expressiveness of the language. Javaslang leveraged…
Read More » -
Core Java
Functional programming for Java: getting started with Javaslang
Java is an old language and there are many new kids in the block who are challenging it on its…
Read More » -
Core Java
Beware of Functional Programming in Java!
This isn’t going to be a rant about functional programming, which is awesome. This is a warning about some practices…
Read More » -
Core Java
Stack safe recursion in Java
In this article, excerpted from the book Functional Programming in Java, I explain how to use recursion while avoiding the…
Read More » -
Core Java
Comparing Imperative and Functional Algorithms in Java 8
Mario Fusco’s popular tweet impressively shows what the main difference between imperative and functional approaches to similar algorithms really is:…
Read More »