Functional Patterns With Java8
Functional Patterns With Java8
Functional Patterns With Java8
Lead Architect
Tech Team Lead and Consultant
founder of
Software Craftsman Bucharest
Software
XP: Pair Programming, Refactoring, TDD Craftsmanship
Community
Clean Code Evangelist
Moscow Paris London Krakow Vienna Sofia Casablanca Belgrade Kiew Barcelona
+ 10 more
VictorRentea.ro
Independent
Technical Trainer & Coach
5 years 1000 devs 100+ days at:
[email protected]
VictorRentea.ro @victorrentea [email protected]
VictorRentea.ro
HARD-CORE SWITCH
HARD-CORE SWITCH
lower play rate
in YouTube
Clean Code
+
Java 8
Expressive Names
Lambdas should be one liners
-> {
Extract heavy lambdas into named ::methods
➢in the same class
➢in the item class
➢as static methods
Optional
No Nullable Parameters
Instead: thatOpt.map(doStuffWithIt)
Passing-a-Block
exporter.exportFile("orders.csv", orderWriter::writeContent);
Passing-a-Block
Testable
Infrastructure decoupled from export format
test with a dummy format test with a StringWriter
Passing-a-Block
Runtime Exceptions
Read it all in my dzone article Trainings, talks, goodies Quality posts daily on
dzone.com/articles/functional-programming-patterns-with-java-8
Let's chat!