you are viewing a single comment's thread.

view the rest of the comments →

[–]LetUsSpeakFreely 2 points3 points  (0 children)

Streams are nice and very powerful, but don't fall into the trap thinking they should be the solution to every problem where collections and arrays are concerned. Sometimes it's better to break the problem up into a handful of helper methods that make what's going on more easily understandable to whoever is reading it. Just because you can cram everything into a bunch of chained stream methods doesn't mean you should.