JavaJava
Conference50min
INTERMEDIATE

If Streams Are So Great, Let’s Use Them Everywhere... Right??

Using streams everywhere: is that really a good idea? Certainly, stream code is often much clearer and more concise than iteration over a collection. But sometimes a stream solution requires a complex combination of collectors, reduction over a primitive stream, or nested FlatMap operations, and the verdict isn’t so obvious. In this talk, we’ll look at some sample use cases, evolve the best solutions we can, in both imperative and functional styles, and then argue over which is better. You’ll get a vote too!This session is for everyone who needs to write code in Java for bulk data processing – every Java developer, in fact. You’ll leave hopefully entertained, and with a better idea of the use cases where streams excel, and where you’re better staying with old-fashioned ways.

Maurice Naftalin
Maurice NaftalinMorningside Light Ltd
José Paumard
José PaumardJosé Paumard

talkDetail.whenAndWhere

Thursday, October 10, 09:30-10:20
Room 8
talks.description
Using streams everywhere: is that really a good idea? Certainly, stream code is often much clearer and more concise than iteration over a collection. But sometimes a stream solution requires a complex combination of collectors, reduction over a primitive stream, or nested FlatMap operations, and the verdict isn’t so obvious. In this talk, we’ll look at some sample use cases, evolve the best solutions we can, in both imperative and functional styles, and then argue over which is better. You’ll get a vote too!This session is for everyone who needs to write code in Java for bulk data processing – every Java developer, in fact. You’ll leave hopefully entertained, and with a better idea of the use cases where streams excel, and where you’re better staying with old-fashioned ways.
Bulk data processing
Java
Old-fashioned ways
Streams
talks.speakers
Maurice Naftalin

Maurice Naftalin

Morningside Light Ltd

United Kingdom

Five decades working in IT: developer, designer, architect, manager, teacher, and author. Working with Java since 1.0. Author, Mastering Lambdas; co-author, Java Generics and Collections. Disorganises the unconference JAlba. Java Champion. Speaks at conferences a lot.
José Paumard

José Paumard

José Paumard

France

José is a Java Developer Advocate at Oracle. He holds a PhD in applied mathematics and computer science. He has been an assistant professor at the University Sorbonne Paris Nord for 25 years. He is an active member of the Paris Java User Group, and a disorganizer of the JChateau unconference. He contributes Java learning content on the dev.java website. He publishes "Java Coding Tips", a biweekly series of shorts, and the "JEP Café", a video series, both on the Java YouTube channel.
comments.title

comments.speakerNotEnabledComments