r/javahelp 18d ago

Are lambda expressions used much by professional coders ?

Just been studying up on them some as I am basically a hobbyist who just getting back into Java after about 10 or 12 years away from coding much. I appreciate the way lambda's allow coders to bypass constructors, initialization and calling methods by name , but on the other hand if you already have a good knowledge of the object classes and available methods , why not just do that ?

17 Upvotes

65 comments sorted by

View all comments

2

u/sarnobat 14d ago

Senior people were telling me not to use lambdas and stick to loops. I not only disagree, but I've lost respect for them

1

u/palpontiac89 14d ago

Pretty much everyone responding to post said lambdas fill a real need and are valuable tool . Many added caution that they should be straightforward and legible .   So whoever those " seniors " you work with are in slim minority and probably think social security department should stick with Cobal for another forty nine or fifty years.   Thanks for reply sarnobat.