8,195 reputation
11851
bio website glenpeterson.blogspot.com
location United States
age
visits member for 2 years, 4 months
seen Dec 14 at 15:04

Java/Web Application Architect, Scala enthusiast, Clojure fan, seeker of knowledge.

The new "On Hold" feature of SE that gives people more of a chance to improve poorly worded questions before they are closed is sweet!


Dec
17
awarded  Popular Question
Sep
30
awarded  Explainer
Sep
27
revised Parameterized Java Types (Generics)
deleted 35 characters in body
Sep
24
awarded  Autobiographer
Sep
9
awarded  Necromancer
Sep
1
revised Parameterized Java Types (Generics)
deleted 1524 characters in body
Sep
1
answered Parameterized Java Types (Generics)
Aug
31
comment Parameterized Java Types (Generics)
This was really helpful toward answering my question: angelikalanger.com/GenericsFAQ/FAQSections/…
Aug
31
revised Parameterized Java Types (Generics)
added 133 characters in body
Aug
31
revised Parameterized Java Types (Generics)
I had written something just wrong so I deleted it. <S extends Class<? super T>... means that S is a sub-class of Class, which is declared final anyway and Object is not parameterized.; added 14 characters in body
Aug
31
revised Parameterized Java Types (Generics)
added 713 characters in body; edited tags
Aug
31
comment Parameterized Java Types (Generics)
@PeteKirkham Great question, several great answers. The most specific common ancestor of both Vehicle and PurchasableItem would be another reasonable choice, even if that was Object.
Aug
30
asked Parameterized Java Types (Generics)
Aug
21
reviewed Edit How can if (sscanf(buf, “%i”, &mode) != 1 || TRUE) be rewritten to if (TRUE)?
Aug
21
revised How can if (sscanf(buf, “%i”, &mode) != 1 || TRUE) be rewritten to if (TRUE)?
deleted 23 characters in body
Aug
21
awarded  Custodian
Aug
21
reviewed No Action Needed In MVC, why can't a model create a view?
Aug
21
accepted Java: method takes varargs of unrelated types
Aug
21
comment Java: method takes varargs of unrelated types
I did as you suggested and created a Renderable interface. It required major refactoring to apply in this particular example, but is a very good solution. There are still some things I'd like hidden that are exposed and vice-versa, but until I can articulate them, it's good enough.
Aug
21
comment Should I sacrifice code succintness to ensure the narrowest variable scope?
An example would make this question 100 times better. If it gets closed here for being opinion-based, your example might be valid on CodeReview.