DictionaryForumContacts

Terms for subject Programming containing как быть?l1=2 | all forms
RussianEnglish
Основная технология программирования, предназначенная для разрушения циклов между классами и по этой причине приводящая к устранению циклов между пакетами и уровнями, использует концепцию интерфейса. Поддерживающей технологией является целевое использование обработки событий, возможно, на основе использования интерфейсов. Две технологии объясняются в разделах 9.1.6 и 9.1.7, после того, как будут описаны зависимости между методамиthe main programming technique to break cycles between classes, and therefore contribute to the elimination of cycles between packages and between layers, involves the use of the interface concept. A supporting technique is a targeted use of event processing, possibly on top of the use of interfaces. the two techniques are explained in Sections 9.1.6 and 9.1.7, after the dependencies between methods are described (см. Maciaszek L.A. and Liong B.L. 2005: Practical Software Engineering)
Рис. 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)

Get short URL