19

The senior dev in my team wants me to convert all the lambda expressions I have written to anonymous inner classes. He says it will increase the code readability.
IT IS NOT MY FAULT THAT YOU CAN'T READ LAMDA EXPRESSIONS!!!!

It's like the dev has something against the new features of Java8

Comments
  • 4
    It depends on how big those lambdas are. Having lots of veeeery long lambdas does decrease readability significantly. But a normal usage of lambdas shouldn't be a problem (☞^o^) ☞
  • 0
    @groxx and it is funny how Java practically made them popular back then for not having them!
  • 2
    @don-rager In most of the places it is used for implementing a simple comparator(Just one freaking line), and in one place it is 4 lines!!
  • 0
    I don’t know how lambdas work in java but are these expressions bound to functions which are named?
  • 0
    @TheUchihaGirl I say fuck that guy. You can tell him some nerd on the Internet considers him a dumbass. That'll work I suppose
  • 1
    I don't like Lambda's when they are more than one or two lines max, makes it hard to follow, especially if there are lots of nested lambdas.

    Once saw a C# code it was one huge block of lambda, took me ages to read it all ...
  • 2
    Most developers I know are against lambda expressions because they hurt readability. Only this one really skilled but really weird and asocial programmer I knew used lambda expressions.

    As well, being a professional developer is a social setting and like we learned in school: the social aspect has more priority. That, or you would have to convince him to learn about lambdas, which is also a professional skill: convincing someone.
  • 0
    Did he also ask you to add comments?
  • 1
    I think Lambda-Expressions are OK when they are short enough. Long Lambdas should be avoided
Add Comment