Hacker News new | past | comments | ask | show | jobs | submit login

This past week I sat in a class at work about the newer features of Java 8-10, mainly lambdas and streams. I was like "oh, Java is catching up I see" while another developer was like "What? I don't understand? How would you unit test a stream statement?"

Streams are reasonably testable; I wrote streams-heavy code for a year, and did not have issues with that.

Very long streams can be combined of shorter stages, and these stages are individually testable, when needed.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact