Maurice Naftalin

@mauricenaftalin.bsky.social

A chat with Stuart Marks about the new edition of Java Generics and Collections. We discussed encapsulating collections, avoiding anemic domain models, UnsupportedOperationException, and more! GOTO podcast (9 Jan): lnkd.in/eBJ3MhQe. Buy "Java Generics and Collections, 2/e" at all good bookshops!

"I need an array of a generic type. Why won't the compiler let me create one?" "How do I find the intersection of two Sets?" These and all other questions about generics and collections are answered in the newly published 2nd edition of Java Generics and Collections. 1/2