Re: Studying Generics



On Sun, 07 Sep 2008 18:58:01 +0200, Peter Horlock
<Peter.Horlock@xxxxxxxxxxxxxx> wrote, quoted or indirectly quoted
someone who said :

I am looking for a GOOD book or tutorial about all subleties of
Generics. I've bought Oreilly's "Java Generics", but so far I don't
really like it - After reading it, many topics still seem unclear to me.

Are there any alternatives?

The problem is generics truly are weird. Type erasure is a
Procrustean bed. I doubt any book could make them palatable. Try
reading Angelika Langer's FAQ. See
http://mindprod.com/jgloss/generics.html

Then look at Sun Collection code that makes extensive use of generics
in src.zip.

Pretty well the only way I can deal with them is to think what Sun
code is likely trying to do something similar to what I am doing then
see how they handled it.

There are half a dozen people here who post regularly whom I think
understand them fairly deeply. They seem unusually willing to CORRECT
stabs at solving generics problems.
--

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.



Relevant Pages

  • Re: Java Generics and Erasure foobar
    ... experience writing code than reading it. ... generics makes it so much faster to learn and understand the code. ... It seems to me that HackerBob has little experience maintaining code as well. ...
    (comp.lang.java.programmer)
  • Re: Targeting builds for .NET FW 1.1 using VS 2005
    ... I remember reading somewhere about a VS2005 setting ... >that would disallow .NET 2.0 language features, like generics. ...
    (microsoft.public.dotnet.framework)
  • Re: Still no typedef
    ... some variable using generics can be quite long. ... Maybe they save the typing, ... reading over that bulk lateron :-) ...
    (comp.lang.java.programmer)
  • Re: Studying Generics
    ... I've bought Oreilly's "Java Generics", but so far I don't really like it - After reading it, many topics still seem unclear to me. ... (Hmm, imagine that - material on java.sun.com!) ...
    (comp.lang.java.programmer)
  • Generics question
    ... I am reading through the basics of generics from several different ... and one of the things that is common amongst all of them seems ...
    (microsoft.public.dotnet.languages.csharp)