Disagreeing with Ken Arnold on Java Design, Kapor Vaporware and a Triple F List [Dare Obasanjo aka Carnage4Life]
Dare has a great entry once again... It's nice to see that someone else agrees that java.util.Stack extends java.util.Vector is a bad thing.
I haven't made up my mind about marker interfaces yet, though... I think there's a place for them, if only because
if (o is IFormatAsCdata) { ... }
looks nicer than (off the top of my head):
if (o.GetType().GetCustomAttributes(typeof(FormatAsCdataAttribute), true).Count != 0) {...}
There's other ways to do the GetCustomAttributes call, but I think you get the point. From a framework development perspective, attributes are definately the way to go, but from an application developer persective, I think marker interfaces might have their place. I'm still trying to make up my mind.
1:17:11 AM
|