I love Java. I love OOP. I love polymorphism. But polymorphism does not always solve every problem I have. Something about sweeping statements of the form “If you use instanceof you are a complete idiot” have always bothered me (on many levels, but I’m referring here only to its technical aspect).
This nifty blog post by Steve Yegge made me feel better. It points out when polymorphism just will not do the trick (and has a nice recap/primer of polymorphism if you are a little rusty on it).
Just thought I’d share that.