DictionaryForumContacts

   Russian
Terms for subject Programming containing как показывает | all forms
RussianEnglish
Рис. 15.1 показывает, как рефакторинг Класс извлечения мог бы быть использован для класса CActionerFigure 15-1 shows how the Extract Class refactoring could be applied to the CActioner class Section 13.4.1. CActioner is involved in two quite disparate tasks: in retrieving outmessages requested by the user and in sending emailing outmessages. It is logical to extract these two tasks into separate classes: CMsgSeeker and CMsgSender. To avoid terminological confusion, CActioner is renamed to CAdmin. Constructor and non-public methods are not considered (раздел 13.4.1). Класс CActioner включен в две совершенно несопоставимые задачи: извлечение исходящих сообщений, требуемых пользователем, и посылка исходящих сообщений (передача по электронной почте). Логично извлечь эти две задачи в отдельные классы: CMsgSeeker и CMsgSender. Чтобы избежать терминологического беспорядка, CActioner переименован в CAdmin. Конструктор и методы, не являющиеся общедоступными, не рассматриваются (см. Maciaszek L.A. and Liong B.L. (2005): Practical Software Engineering ssn)