Re:Simple Ways of Reducing the Cognitive Load in Code
by msluyter on Tuesday June 28, 2016 @10:08AM
(#11993879)
I suppose to some extent this is a matter of taste, but I've usually found the streams api to be clearer and easier to understand, although perhaps there's a bit of a learning curve. I think the win is especially large in cases where you replace an anonymous inner class with a lambda, imho. At my previous job, we had all gotten quite familiar with Apache's CollectionUtils, but java8 almost obviates the need for that entirely.
[ Parent
| on HN ]
There are no comments on this comment yet.