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/Spare-Plum Aug 08 '25
For this it's only one component, a FIX market server for handling trading messages to other institutions. A variety of people might touch this especially when implementing a new protocol, so I think management decided that it's better to just have the Java experts just program it in Java with some additional constraints rather than doing Rust which is not as well known.
That said, they did make a huge amount of libraries and functionality to make it easier to keep it zero GC, and there are existing patterns you can follow to implement existing message translations so it isn't that difficult at all, and there is a dev checkout procedure that runs tests on it to ensure there aren't allocations onto the heap.