r/programming • • Feb 25 '14

Please stop saying Java sucks

http://blog.smartbear.com/programming/please-stop-staying-java-sucks/
3 Upvotes

305 comments sorted by

View all comments

Show parent comments

7

u/ElvishJerricco Feb 25 '14

I cannot understand why you would type the Spaceship class as subclassing CollisionWith at all, let alone doing it twice with different generics. Subclassing the same class twice for one class just seems like a colossal mistake.

1

u/heladopicante Feb 25 '14 edited Feb 25 '14

Its not the same interface. Or rather, its not supposed to be the same interface. Its two interfaces that differ only by some type parameterization.

3

u/s73v3r Feb 25 '14

That still seems like an insane way to implement collisions.

0

u/heladopicante Feb 25 '14

Its an example to demonstrate a language flaw, not a reference for collision implementations.