Where to draw the line between attributes and XML.
It's not the first time that I have that feeling after long code review that programmers don’t know where to draw the line between using attributes as declaratives or using XML and interfaces to achieve the same goal. While it's true that attributes are more clean way to declare your intension about certain class then using virtual classes or interface it's not always the right choice. I didn’t see it often but I saw programmers using attributes in places where interfaces is needed due to the need to implement interface by declaring class. What I've seen often is using of attributes where XML are more suitable. Well maybe its just point of view, and anyone got its own, but I see clear line between them. Attributes should be use just for declarative purpose of the programmer (I want logging or auditing in that function please). XML should be use for sys admin usage like setting logging on/off for a given system. Moreover, XML setting should override attributes setting if they clash.
Well that's my point of view I'd like to hear others …