Where to use Optional - Inside Java Newscast #19
A deep dive into when and how to use Java's Optional type, analyzing common arguments and alternatives like method overloading.
A deep dive into when and how to use Java's Optional type, analyzing common arguments and alternatives like method overloading.
A deep dive into the pros and cons of using Java's Optional type for method parameters, analyzing common arguments and patterns.
A deep dive into advanced Java 8 topics like lambda APIs, Streams, Optional, and default methods for experienced developers.
Argues against adding an Elvis operator (?.) to Java for null safety, claiming it harms correctness without a non-nullable type system.
Explores new methods added to Java's Optional class in Java 9, focusing on the stream() method and its practical applications for cleaner code.
Highlights subtle bugs in Java Stream's findFirst() and findAny() when assuming unique results, and suggests fail-fast alternatives.
A critique of pragmatic Java 8 Optional usage, advocating for a stricter approach than the common library design recommendations.
Explains why Java's Optional isn't serializable and demonstrates a workaround using the serialization proxy pattern.
Explores the design decision behind Java's Optional class not implementing the Serializable interface and the reasoning of its creators.
Explores the design decisions and expert discussions behind Java 8's Optional type, contrasting them with the author's own views.
Explores Java's Optional type as a tool for writing intention-revealing code and avoiding null references, part of a detailed series.