big package wrote as s**t. It s like a big main method that calls other methods that calls other methods... And i have to write junit tests... So, i was thinking that maybe i can transform the nested methods into lambda espression. What do u think about?
I wish you the best of luck sir
Sounds like "I want to use a feature because I learned it". Personally, I don't see any point. Lambdas are better when you need a small handler and where it's obvous what this lambda is for. In your case it looks like you need introduce more context instead - small classes with names, small methods with names. But not to remove excessive context. Or I totally missed the point
Обсуждают сегодня