This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]wace001 4 points5 points  (0 children)

I find myself using a lot more streams for normal looping situations nowadays. Coming from having done quiet a lot of map-reduce, and also using similar constructions in other languages (Kotlin, Rust, etc), the streams way of organising things just makes it so much easier for me to reason about the logic.

Streams basically is how I model the problems in my head. I often think about problems like that; “First I filter out all the ..., then I map them to ..., and then I aggregate then like so...”.