3 ms·
Recently code reviewed some new Java code. Author, who is brilliant in a number of ways had written the code using new functional style. This meant a bunch of
by skinkestek 5y ago
Recently code reviewed some new Java code.
Author, who is brilliant in a number of ways had written the code using new functional style.
This meant a bunch of anonymous function stringed together in maps.
No comments of course since comments are generally bad these days.
If one does functional programming in Java, don't do that.
- rbonvall 5y agoUnfortunately there's this idea that functional programming is just about using lambdas for everything. For me, proper functional style is just about decoupling business logic from state and side effects, and this can still be done with idiomatic OOP code.