The Good, the Bad and the Ugly of Java API design
summary
Covers concrete Java API changes and examples from Java 9–12: shows of(...) factory methods (12 overloads, 0–10 args plus varargs) for truly immutable List/Set/Map and Java 10’s copyOf plus stream collectors and Java 11’s Collection.toArray(generator); demonstrates StackWalker’s lazy stack streaming with option to retain class references and walk(func) for limited frames; builds a local HTTP server and uses the Java 11 HttpClient/HttpRequest/HttpResponse (HTTP/2, WebSocket) and ProcessHandle (startPipeline, ProcessHandle.onExit returns CompletableFuture), all working end-to-end.
AI-written summary · about
chapters (6)
- 0:00Introduction
- 0:44Immutable collections
- 7:47Best practices for APIs
- 17:11Stack walker API
- 23:30Process API improvements
- 35:35HTTP client and conclusion
related talks
50mThe Good, the Bad and the Ugly of Java API Design
50mThe Good, the Bad and the Ugly of Java API Design
01h 05mJava 8: The Good, the Bad and the Ugly
01h 01mAPI Design with Java 8 Lambdas and Streams
02h 34mExploring Java 9: The Key Parts
27mModern Java API Design
43mKeeping Up With Java
02h 39mJava 9 and Beyond
