DEV Community

Discussion on: Real-World Java with Predicates and Streams

Collapse
 
florianweissdev profile image
Forian Weiß

Great read. I really like your writing style.

But I would want to argue against using the variable name c for the lambda parameter as a short for candy. Candy is short enough that there is no real benefit in shortening it, in my opinion.
Also I don't think it's comparable to i in for-loops since i is very generic and c in your example is short for candy.
But I've seen longer streams with longer potential parameter names and counts where it definitely could make sense to shorten them in some way.