Information générale
Catégorie:
The Mere Mortals .NET Framework
Hi Kevin,
>I'm not really crazy about I-layers...I'd rather solve the problem through composition rather than inheritance.
FWIW, I totally agree with you. While the i-layers were initially useful in Codebook to separate our changes from the framework updates, as the framework evolved and our enhancements (or deviations) evolved, it ended up being a maintenance nightmare. You really can't avoid running up against what Stephen describes. The i-layer actually complicates it rather than solving it. Some of the original enhancers were crazy enamoured of inheritence as a solution. whether we took advantage of it or not, the i-layer ended up being just a whole lot of extra baggage. As I rewrite all this stuff, I am always looking for ways to use composition rather than inheritance. I find it makes maintenance easier in the long run.
pamela
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement