Этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
Политика конфиденциальности
|
|
|
Закон Деметера
|
|||
|---|---|---|---|
|
#18+
Кто может запостить сюда субж ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.03.2005, 06:55 |
|
||
|
Закон Деметера
|
|||
|---|---|---|---|
|
#18+
А что бы вы хотели услышать? Данный закон говорит, что лучше не ссылаться на объекты больше, чем на один уровень глубины. Правда, это как всегда, идеальное правило, обычно никогда не соблюдаемое. Вернее, я не видел реальных прог, написанных точно по правилам ООП такого рода. ________________________________________________________ Глюк - это высокоорганизованная система не поддающихся определению частиц ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.03.2005, 11:00 |
|
||
|
Закон Деметера
|
|||
|---|---|---|---|
|
#18+
[quot Lelikk]Данный закон говорит, что лучше не ссылаться на объекты больше, чем на один уровень глубины. quot] Что и все? И больше ниочем этот закон не говорит? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.03.2005, 13:22 |
|
||
|
Закон Деметера
|
|||
|---|---|---|---|
|
#18+
_мастак[quot Lelikk]Данный закон говорит, что лучше не ссылаться на объекты больше, чем на один уровень глубины. quot] Что и все? И больше ниочем этот закон не говорит? The Law of Demeter (LoD) is a simple style rule for designing object-oriented systems. "Only talk to your friends" is the motto. ( http://www.ccs.neu.edu/home/lieber/LoD.html ) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.03.2005, 13:38 |
|
||
|
Закон Деметера
|
|||
|---|---|---|---|
|
#18+
_мастак[quot Lelikk]Данный закон говорит, что лучше не ссылаться на объекты больше, чем на один уровень глубины. quot] Что и все? И больше ниочем этот закон не говорит? Какой вопрос, такой и ответ Или вы пришли тут экзамен устроить, кто что знает в ООП? Или если это попытка дискуссии, то тема не ясна. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 18.03.2005, 20:35 |
|
||
|
Закон Деметера
|
|||
|---|---|---|---|
|
#18+
_мастакКто может запостить сюда субж Law of Demeter (LoD) The Law of Demeter was originally formulated as a style rule for designing object-oriented systems. "Only talk to your immediate friends" is the motto. The style rule was discovered at Northeastern University in the fall of 1987 by Ian Holland. A more general formulation of the Law of Demeter is: Each unit should have only limited knowledge about other units: only units "closely" related to the current unit. Or: Each unit should only talk to its friends; Don't talk to strangers. In this general form, the LoD is a more specific case of the Low Coupling Principle well-known in software engineering. The Low Coupling Principle is very general and we tried to make it more specific. The benefit of the specific Law of Demeter shown below is that it makes the notion of unnecessary coupling very explicit. The main motivation for the Law of Demeter is to control information overload; we can only keep a limited set of items in short-term memory and it is easier to keep them in memory if they are closely related. The definition of "closely related" is intentionally left vague so that it can be adapted to particular circumstances. In the application of LoD to object-oriented design and programming we have: unit = method f closely related = methods of class of this/self of f and other argument classes of f and methods of immediate part classes (both computed and stored) of class of f (classes that are return types of methods of class of this/self (= computed) and the classes of data members (= stored)) and methods of classes of objects that are created in f. The above is the class form of the Law of Demeter which has the advantage of being efficiently computable. However, it is the Object Form of the Law of Demeter which expresses the style rule we really want. Unfortunately, whether a program satisfies the object form is undecidable. However, we can run the program and check at run-time whether violations occur (this is a nice exercise in Aspect-Oriented Programming). Rumbaugh summarizes the Law of Demeter as: A method should have limited knowledge of an object model. This view leads to aspect-oriented programming: we pull out the method and transitively all its auxiliary methods into a separate aspect. This works best if the separate aspect has limited knowledge about the object model. The Law of Demeter and narrow and wide interfaces (initiated by Mitch Wand 2003, invited talk at ICFP 2003): At the method level, the LoD leads to narrow interfaces because each method needs to know about a small set of methods of closely related objects. On the other hand, at the class level, the LoD leads to wide interfaces because the LoD requires that we introduce many auxiliary methods instead of digging directly into the object structures. Wide interfaces for classes are a problem and the solution is an aspect-oriented approach where the behavior of the method is specified as an aspect at a high level of abstraction. We still have wide interfaces but we manage them through a language that specifies implementations. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.03.2005, 10:54 |
|
||
|
Закон Деметера
|
|||
|---|---|---|---|
|
#18+
Я не понял, это что а) ликвидация всеобщей вопиющей безграмотности б) попытка показать "какой я умный" в) неумение сказать то что хотел г) тренировка на copy-paste ? ________________________________________________________ Глюк - это высокоорганизованная система не поддающихся определению частиц ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.03.2005, 18:03 |
|
||
|
Закон Деметера
|
|||
|---|---|---|---|
|
#18+
Lelikkбла бла бла это поиски истины; зри в корень брат мой ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 23.03.2005, 06:09 |
|
||
|
Закон Деметера
|
|||
|---|---|---|---|
|
#18+
_мастак Lelikkбла бла бла это поиски истины; зри в корень брат мой БРЕД!!!!!! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 23.03.2005, 10:49 |
|
||
|
Закон Деметера
|
|||
|---|---|---|---|
|
#18+
поиск истины это действительно берд, её нет :) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 23.03.2005, 12:22 |
|
||
|
Закон Деметера
|
|||
|---|---|---|---|
|
#18+
Lelikk ________________________________________________________ Глюк - это высокоорганизованная система не поддающихся определению частиц Зачем ты каждый раз пишешь вышеуказанное. Я тоже не понял, это что а) ликвидация всеобщей вопиющей безграмотности б) попытка показать "какой я умный" в) неумение сказать то что хотел г) тренировка на copy-paste д) следование принципу "что вижу - о том и пою" е) просто спам ж) не просто спам з) все вышеперечисленное вместе взятое ? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.04.2005, 13:31 |
|
||
|
Закон Деметера
|
|||
|---|---|---|---|
|
#18+
_мастак[quot Lelikk] Или просто ЗАЕЛО? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.04.2005, 13:36 |
|
||
|
|

start [/forum/topic.php?fid=16&msg=32998026&tid=1347780]: |
0ms |
get settings: |
10ms |
get forum list: |
16ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
37ms |
get topic data: |
11ms |
get forum data: |
3ms |
get page messages: |
50ms |
get tp. blocked users: |
2ms |
| others: | 251ms |
| total: | 388ms |

| 0 / 0 |
