Are you using Java8 Lambdas & Streams in your core business logic? Then you might be having this strange feeling that it’s not Java anymore: at times it’s cryptic, barely readable.. This was the topic of the workshop with the same name that I held at VoxxedDays Bucharest 2017. These are the slides backing the that workshop.
As a summary, the materials walk through the functional features of Java8, adding details along the way about how we can keep the code clean as we embrace the Java 8 features.
The entire desktop screencast + voice it's on youtube, here: https://youtu.be/uH9A37k2QkU
Clean Code Evangelist
International Speaker Spring and
Clean Code, Design Patterns ( )
TDD, Coding Dojos
Victor Rentea, PhD(CS)
Consultant, Technical Lead
Lead Architect for major client at IBM Romania
Night Job :
Freelance Trainer & Coach
They are cool
Concise code (½ lines?)
Cryptic? Hard to read?
- What guidelines to follow ?
Why Lambdas ?
Which λ to use in enterprise Java apps ?
- Readable, maintainable
- vs Java7
- Java8 features in examples from production
- For Java developers of any exp level (min 3 months of Java8 hands-on)
- Wanna submit you answer? Thank you !! : http://bit.ly/2dFf2fi
My own little
Clean Lambdas Study
// Cool Class Diagram
Before we start: configure your IDE to suggest static imports of:
java.util.stream.Collectors.* and java.util.Comparator.comparing
In Eclipse: Preferences > type “favo” > Favorites > New Type & New Member
Our Domain Model
Find the shortest form
Don’t abuse them
Clean Code Using Java8 New Features
(lambdas, Stream, Optional)
Java 8 in Action by Raoul-Gabriel Urma, Mario Fusco, Alan Mycroft, 2015
Clean Code by Robert C. Martin
Curious about Java9: https://bentolor.github.io/java9-in-action/