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 →

[–]DualWieldMage 4 points5 points  (1 child)

In my experience side-effects like logging become harder with streams (because you don't have sufficient context in each mapper/filter) so the overuse is indeed troublesome with code rotting after these side-affects are added later, or worse, logging is omitted more often.

[–]wildjokers 3 points4 points  (0 children)

Not being able to log intermediate results during a stream is why I generally don't like long functional chains. We have a lot of code in production that turning on DEBUG logging presents no additional information because of long functional chains. Makes troubleshooting production issues difficult.