Balancer> - Есть тонны кода, который придётся тупо переписывать. It is irrelevant to the topic. You asked why multiple inheritance is bad (more exact, why new languages get rid of that), not how to refactor your project.
Balancer> - Получаем заметное падение производительности, поскольку у нас появляется лишняя операция извлечения этого DataProvider. Nothing even close to this. What are you talking about? Do you put your JDBC operators to one method? All those methods should be separated. This is business logic, it should be clearly separated from the interface. If we are talking about the problem you described, the best way to do this would be put all business logic apart, to EJB methods. If you think it would be not fast enough, think - financial institutes do it this way for millions of transactions and it's good enough for them.
Balancer> - Наконец, придётся переписать всю систему шаблонов, так как используемая не понимает метода от метода для класса. Ну вот такие у Smarty ограничения. Irrelevant to the topic.
Balancer> Итого - имеем человекомесяц лишней работы... Да проще уж, действительно, всё на Python переписать, где это множественное наследование есть Объём работы сопоставим будет. И перспективы, опять же... It depends on what you want. It cannot prove that multiple inheritance is a good approach to design.
PS Sorry for English, don't have Russian keyboard. No need to answer English, though, I can read Russian.
Это сообщение редактировалось 25.07.2007 в 00:02