Streams in Java 8 - The Good, the Bad, and the Ugly
Offered By: Java via YouTube
Course Description
Overview
Explore the intricacies of the Streams API and lambda expressions introduced in JDK 8 through this informative conference talk. Delve into practical examples showcasing good, bad, and ugly implementations of streams in Java programming. Learn how to leverage these powerful features effectively while avoiding common pitfalls that can lead to difficult-to-read and hard-to-maintain code. Gain insights from industry experts Simon Ritter and Stuart Marks as they guide you through various scenarios, including non-stream code, improved stream implementations, functional thinking, iteration techniques, and parallel stream considerations. Discover new ways to optimize your Java code using streams and lambdas, and understand which approaches to avoid for better code quality and maintainability.
Syllabus
Intro
Goals Of This Session
Problem To Solve
Non-Stream Code
My Stream Code (Ugly)
Stream Code (Better)
Stream Code (Better JDK 9)
Not Thinking Functional
Almost Functional (But Not Quite)
Mixed Iteration (Bad)
Internal Iteration (But Ugly)
Internal Iteration (Good)
Mixed Interation (Still Bad)
Simple Exercise
Alternative Reduction (Bad)
Reduction By Collection (Complex)
Stream Reuse (Good or Bad?)
Multi-Sort (Bad)
Parallel Streams Are Faster, Right?
Custom Pools For Parallel Streams
Conclusions
Taught by
Java
Related Courses
Python Functions, Files, and DictionariesUniversity of Michigan via Coursera Complete Modern C++ (C++11/14/17)
Udemy Java Programming Masterclass: Learn Java From Scratch
Udemy Lambda with Functional Programming in Java8
Udemy C# Advanced Topics: Prepare for Technical Interviews
Udemy