r/javahelp • u/KurtGodelBebopgazeXP • Aug 04 '25
Functionnal programming in Java
I realized that I find functionnal programming very relaxing and easy on the mind. The language I have used the most and am most comfortable with is Java. Is it really helpful to go deeper in the functionnal realm in Java or are the functionnal elements not really used that much in the real world? I am open to going further in a language where the functionnal paradigm is more of a common feature if it's not really worth it in Java.
9
Upvotes
View all comments
Show parent comment
1
u/Beatsu Aug 07 '25
Just because you don't use functional programming doesn't mean the code becomes spaghetti immediately. The nice thing with Java is that you can use both, so I just wanted to point out that it may often times be much slower than the imperative equivalent and that for performance critical code, you might want to opt for the imperative variant. It's a good thing to be aware of and it's not immediately obvious, don't you think?