Generics are one of the most complex features of Java. They are often poorly understood and lead to confusing errors. Unfortunately, it won’t get easier. Java 10, release planned for 2018, extends Generics. It’s now time to understand generics or risk being left behind. We start by stepping back into the halcyon days of 2004 and explain why generics were introduced in the first place back. We also explain why Java’s implementation is unique compared to similar features in other programming languages. Then we travel to the present to explaining how to make effective use of Generics. We then explore various entertaining code examples and puzzlers of how Generics are used today. Finally, this talk sheds light on the planned changes in Java 10 with practical code examples and related ideas from other programming languages. If you ever wanted to understand the buzz around higher kinded types or declaration site variance, now is your chance!
YOU MAY ALSO LIKE:
- Continuous Profiling in Production: What, Why and How (SkillsCast recorded in April 2019)
- Java Design Patterns: The Timeless Way of Coding with Dr Heinz Kabutz (Online Course on 12th - 15th October 2020)
- Arthas: Inside Alibaba's Java Diagnostic Tool (Online Meetup on 24th September 2020)
- Building a Cloud Ready Application with Quarkus (SkillsCast recorded in August 2020)
- Test Automation Beyond Java 8 (SkillsCast recorded in July 2020)
Generics: Past, Present and Future
Raoul-Gabriel Urma is CEO and co-founder of Cambridge Spark, a leading learning community for data scientists and developers in the UK, as well as chairman and co-founder of Cambridge Coding Academy, a growing community of young coders and pre-university students. He is author of 'Java 8 in Action: Lambdas, Streams, and functional-style programming'.
Richard Warburton is an empirical technologist, solver of deep-dive technical problems and author of 'Java 8 Lambdas: Pragmatic Functional Programming'. He has worked as a developer in varied areas including Statistical Analytics, Static Analysis, Compilers and Networking. He is a leader in the London Java Community and runs OpenJDK Hackdays. Richard is also a known conference speaker, having talked at JavaOne, Devoxx, JFokus, DevoxxUK, Geecon, JAX London and Codemotion. Richard has obtained a PhD in Computer Science from The University of Warwick.