3 ms·
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 ano
by spc476 8y ago
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?"
- nine_k 8y agoStreams 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.